Fix the nav menu ajax spinners (again).
git-svn-id: http://svn.automattic.com/wordpress/trunk@14340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1f94349afb
commit
c3d2524889
File diff suppressed because one or more lines are too long
|
@ -156,9 +156,6 @@
|
|||
display: none;
|
||||
vertical-align: middle;
|
||||
}
|
||||
form.processing .postbox img.waiting {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.button-controls { margin: 10px 0; }
|
||||
.show-all, .hide-all { cursor: pointer; }
|
||||
|
|
|
@ -341,6 +341,9 @@ var WPNavMenuHandler = function ($) {
|
|||
$(formEL).bind('submit', function(e) {
|
||||
return that.eventSubmitMetaForm.call(that, this, e);
|
||||
});
|
||||
$(formEL).find('input:submit').click(function() {
|
||||
$(this).siblings('img.waiting').show();
|
||||
});
|
||||
},
|
||||
|
||||
attachTabsPanelListeners : function() {
|
||||
|
@ -500,7 +503,6 @@ var WPNavMenuHandler = function ($) {
|
|||
processMethod = function(){},
|
||||
re = new RegExp('menu-item\\[(\[^\\]\]*)');
|
||||
|
||||
thisForm.className = thisForm.className + ' processing',
|
||||
that = this;
|
||||
params['action'] = '';
|
||||
|
||||
|
@ -548,7 +550,7 @@ var WPNavMenuHandler = function ($) {
|
|||
|
||||
$.post( ajaxurl, params, function(menuMarkup) {
|
||||
processMethod.call(that, menuMarkup, params);
|
||||
thisForm.className = thisForm.className.replace(/processing/g, '');
|
||||
$(thisForm).find('img.waiting').hide();
|
||||
});
|
||||
|
||||
return false;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue