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:
nacin 2010-05-02 21:05:55 +00:00
parent 1f94349afb
commit c3d2524889
4 changed files with 6 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -156,9 +156,6 @@
display: none; display: none;
vertical-align: middle; vertical-align: middle;
} }
form.processing .postbox img.waiting {
display: inline;
}
.button-controls { margin: 10px 0; } .button-controls { margin: 10px 0; }
.show-all, .hide-all { cursor: pointer; } .show-all, .hide-all { cursor: pointer; }

View File

@ -341,6 +341,9 @@ var WPNavMenuHandler = function ($) {
$(formEL).bind('submit', function(e) { $(formEL).bind('submit', function(e) {
return that.eventSubmitMetaForm.call(that, this, e); return that.eventSubmitMetaForm.call(that, this, e);
}); });
$(formEL).find('input:submit').click(function() {
$(this).siblings('img.waiting').show();
});
}, },
attachTabsPanelListeners : function() { attachTabsPanelListeners : function() {
@ -500,7 +503,6 @@ var WPNavMenuHandler = function ($) {
processMethod = function(){}, processMethod = function(){},
re = new RegExp('menu-item\\[(\[^\\]\]*)'); re = new RegExp('menu-item\\[(\[^\\]\]*)');
thisForm.className = thisForm.className + ' processing',
that = this; that = this;
params['action'] = ''; params['action'] = '';
@ -548,7 +550,7 @@ var WPNavMenuHandler = function ($) {
$.post( ajaxurl, params, function(menuMarkup) { $.post( ajaxurl, params, function(menuMarkup) {
processMethod.call(that, menuMarkup, params); processMethod.call(that, menuMarkup, params);
thisForm.className = thisForm.className.replace(/processing/g, ''); $(thisForm).find('img.waiting').hide();
}); });
return false; return false;

File diff suppressed because one or more lines are too long