Permalink
Browse files

Display cms loading indicator when sorting rows on the same page fixes

  • Loading branch information...
1 parent fc2d17a commit 60c8939f459be1cd09baf8739a3ec1658cb6ad7c @UndefinedOffset committed May 25, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 javascript/GridFieldSortableRows.js
@@ -5,6 +5,7 @@
var self=this;
var refCheckbox=$(this);
var gridField=this.getGridField();
+ var form=gridField.closest('form');
var pageSort=false;
if($(this).is(':checked')) {
@@ -49,7 +50,9 @@
name: 'ItemIDs',
value: dataRows
}
- ]});
+ ]},function() {
+ form.removeClass('loading');
+ });
}
}).disableSelection();
@@ -109,6 +112,8 @@
var form = gridField.closest('form'),
focusedElName = gridField.find(':input:focus').attr('name'); // Save focused element for restoring after refresh
+ form.addClass('loading');
+
ajaxOpts.data = ajaxOpts.data.concat(form.find(':input').serializeArray());
// Include any GET parameters from the current URL, as the view state might depend on it.

0 comments on commit 60c8939

Please sign in to comment.