Menus: Improve performance for title live updating. Add `change` event for IE < 9.
props helen, SergeyBiryukov. fixes #23076. git-svn-id: https://develop.svn.wordpress.org/trunk@29672 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bd07f41256
commit
97921c9fa5
|
@ -534,7 +534,7 @@ var wpNavMenu;
|
|||
|
||||
initPreviewing : function() {
|
||||
// Update the item handle title when the navigation label is changed.
|
||||
$( 'body' ).on( 'input', '.edit-menu-item-title', function(e) {
|
||||
$( '#menu-to-edit' ).on( 'change input', '.edit-menu-item-title', function(e) {
|
||||
var input = $( e.currentTarget ), title, titleEl;
|
||||
title = input.val();
|
||||
titleEl = input.closest( '.menu-item' ).find( '.menu-item-title' );
|
||||
|
|
Loading…
Reference in New Issue