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:
Dominik Schilling (ocean90) 2014-09-02 13:22:14 +00:00
parent bd07f41256
commit 97921c9fa5
1 changed files with 1 additions and 1 deletions

View File

@ -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' );