Cleanup for WC_Admin_Attributes Class

This commit is contained in:
shivapoudel 2014-11-27 22:34:19 +05:45
parent 3aa67ac352
commit 84bc7a2339
1 changed files with 84 additions and 82 deletions

View File

@ -7,11 +7,11 @@
* @author WooThemes * @author WooThemes
* @category Admin * @category Admin
* @package WooCommerce/Admin * @package WooCommerce/Admin
* @version 2.1.0 * @version 2.3.0
*/ */
if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly exit;
} }
/** /**
@ -429,7 +429,9 @@ class WC_Admin_Attributes {
jQuery( 'a.delete' ).click( function() { jQuery( 'a.delete' ).click( function() {
var answer = confirm( "<?php _e( 'Are you sure you want to delete this attribute?', 'woocommerce' ); ?>" ); var answer = confirm( "<?php _e( 'Are you sure you want to delete this attribute?', 'woocommerce' ); ?>" );
if (answer) return true; if ( answer ) {
return true;
}
return false; return false;
}); });