mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
Fix the nav menu ajax spinners (again).
git-svn-id: https://develop.svn.wordpress.org/trunk@14340 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
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
Reference in New Issue
Block a user