diff --git a/assets/settings_page.js b/assets/settings_page.js index 2cea293..ae4ae36 100644 --- a/assets/settings_page.js +++ b/assets/settings_page.js @@ -22,7 +22,7 @@ jQuery(document).ready(function(){ }); // init delete button - jQuery('#jv_settings a.delete_variable').live('click', function(){ + jQuery('#jv_settings a.delete_variable').on('click', function(){ if( confirm( text_just_variables.confirm_delete ) ){ jQuery(this).parents('tr:first').remove(); } diff --git a/just-variables.php b/just-variables.php index a89f9ea..8339839 100644 --- a/just-variables.php +++ b/just-variables.php @@ -6,7 +6,7 @@ Tags: theme, variables, template, text data Author: JustCoded / Alex Prokopenko Author URI: http://justcoded.com/ -Version: 1.2.2 +Version: 1.2.3 */ define('JV_ROOT', dirname(__FILE__)); @@ -29,12 +29,12 @@ function pa($mixed, $stop = false) { add_action('plugins_loaded', 'jv_init'); function jv_init(){ if( !is_admin() ) return; - + /** * load translations */ load_plugin_textdomain( JV_TEXTDOMAIN, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); - + // add admin page add_action( 'admin_menu', 'jv_admin_menu' ); } @@ -53,7 +53,7 @@ function jv_get_variable_value( $var ){ if( !empty($values[$var]) ){ return $values[$var]; } - + return NULL; } diff --git a/just-variables.theme.php b/just-variables.theme.php index 1e88329..ab31d40 100644 --- a/just-variables.theme.php +++ b/just-variables.theme.php @@ -40,7 +40,6 @@ function jv_theme_variables_register_settins(){ function jv_theme_vars_admin_page(){ ?>