WordPress.org

Make WordPress Core

Changeset 29672


Ignore:
Timestamp:
09/02/2014 01:22:14 PM (5 years ago)
Author:
ocean90
Message:

Menus: Improve performance for title live updating. Add change event for IE < 9.

props helen, SergeyBiryukov.
fixes #23076.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/nav-menu.js

    r28707 r29672  
    535535        initPreviewing : function() {
    536536            // Update the item handle title when the navigation label is changed.
    537             $( 'body' ).on( 'input', '.edit-menu-item-title', function(e) {
     537            $( '#menu-to-edit' ).on( 'change input', '.edit-menu-item-title', function(e) {
    538538                var input = $( e.currentTarget ), title, titleEl;
    539539                title = input.val();
Note: See TracChangeset for help on using the changeset viewer.