Skip to content

Commit 97921c9

Browse files
committed
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
1 parent bd07f41 commit 97921c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-admin/js/nav-menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ var wpNavMenu;
534534

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();
540540
titleEl = input.closest( '.menu-item' ).find( '.menu-item-title' );

0 commit comments

Comments
 (0)