Ticket #13220: 13220.select.all.var.fix.1.patch
File 13220.select.all.var.fix.1.patch, 1.1 KB (added by , 14 years ago) |
---|
-
wp-admin/js/nav-menu.dev.js
598 598 599 599 attachTabsPanelListeners : function() { 600 600 $('#menu-settings-column').bind('click', function(e) { 601 var selectAreaMatch, activePanel, panelIdMatch, wrapper, inputs, i ;601 var selectAreaMatch, activePanel, panelIdMatch, wrapper, inputs, i, items; 602 602 603 603 if ( e.target && e.target.className && -1 != e.target.className.indexOf('nav-tab-link') ) { 604 604 panelIdMatch = /#(.*)$/.exec(e.target.href); … … 630 630 631 631 return false; 632 632 } else if ( e.target && e.target.className && -1 != e.target.className.indexOf('select-all') ) { 633 selectAreaMatch = /#(.*)$/.exec(e.target.href) , items;633 selectAreaMatch = /#(.*)$/.exec(e.target.href); 634 634 if ( selectAreaMatch && selectAreaMatch[1] ) { 635 635 items = $('#' + selectAreaMatch[1] + ' .tabs-panel-active .potential-menu-item'); 636 636 if( items.length === items.filter('.selected-menu-item').length )