Plugin Directory

Changeset 1377293


Ignore:
Timestamp:
03/23/2016 07:26:02 PM (10 years ago)
Author:
jkrill
Message:

3.5.2 - bug fixes

Location:
wp-jump-menu
Files:
64 added
3 edited

Legend:

Unmodified
Added
Removed
  • wp-jump-menu/trunk/assets/js/wpjm-main.js

    r1375863 r1377293  
    3737    this.wpjm_load = function() {
    3838
    39         // remove old stuff if it's there
    40         jQuery(WPJM_PARENT_ID).children('*:not(script):not(.ab-item, .loader)').remove();
    41         // load new
    42         jQuery.get(self.wpjm_get_opts().baseUrl + '?action=wpjm_menu', function (html) {
    43             self.wpjm_render(html);
    44         });
     39        var wpjm_opts_cache = self.wpjm_get_opts();
     40
     41        if (wpjm_opts_cache != undefined) {
     42            // remove old stuff if it's there
     43            jQuery(WPJM_PARENT_ID).children('*:not(script):not(.ab-item, .loader)').remove();
     44            // load new
     45            jQuery.get(self.wpjm_get_opts().baseUrl + '?action=wpjm_menu', function (html) {
     46                self.wpjm_render(html);
     47            });
     48        }
     49
    4550    };
    4651
     
    7176jQuery(document).ready(function() {
    7277
    73     wpjm.wpjm_init_html({
    74         baseUrl: wpjm_opt.baseUrl,
    75         useChosen: wpjm_opt.useChosen,
    76         position: wpjm_opt.position,
    77         reloadText: wpjm_opt.reloadText,
    78         currentPageID: wpjm_opt.currentPageID
    79     });
     78        wpjm.wpjm_init_html({
     79            baseUrl: wpjm_opt.baseUrl,
     80            useChosen: wpjm_opt.useChosen,
     81            position: wpjm_opt.position,
     82            reloadText: wpjm_opt.reloadText,
     83            currentPageID: wpjm_opt.currentPageID
     84        });
    8085
    8186});
  • wp-jump-menu/trunk/readme.txt

    r1375863 r1377293  
    77Requires at least: 3.7
    88Tested up to: 4.4.2
    9 Stable tag: 3.5.1
     9Stable tag: 3.5.2
    1010
    1111Creates a drop-down menu in the admin area which makes it easy to jump to a page, post, custom post type or media file for editing.
     
    110110
    111111== Changelog ==
     112= 3.5.2 =
     113* Bug fixes
     114
    112115= 3.5.1 =
    113116* Bug fix on caching system.
  • wp-jump-menu/trunk/wp-jump-menu.php

    r1375863 r1377293  
    99Plugin URI: http://wpjumpmenu.com
    1010Description: Creates a drop-down menu (jump menu) in a bar across the top or bottom of the screen that makes it easy to jump right to a page, post, or custom post type in the admin area to edit.
    11 Version: 3.5.1
     11Version: 3.5.2
    1212Author: Jim Krill
    1313Author URI: http://krillwebdesign.com
     
    101101        add_action( 'admin_print_styles', array( $this, 'wpjm_css') );
    102102        add_action( 'plugin_action_links', array( $this,'plugin_action_links'), 10, 2 );
    103         add_action( 'wp_print_scripts', array( $this, 'wpjm_js') );
     103        add_action( 'wp_enqueue_scripts', array( $this, 'wpjm_js') );
     104        add_action( 'admin_enqueue_scripts', array( $this, 'wpjm_js') );
    104105
    105106        if ( $this->options['position'] == 'wpAdminBar' )
Note: See TracChangeset for help on using the changeset viewer.