List view: multi-select actions: Show loading icon during action

This commit is contained in:
Brian Federle 2014-06-05 12:27:14 -07:00
parent 8b5ec64842
commit 2ac0013505

View File

@ -184,6 +184,7 @@
// Make copy of previous row, in case data is needed // Make copy of previous row, in case data is needed
$prevRow = $instanceRow.clone(); $prevRow = $instanceRow.clone();
if (multiSelect) { if (multiSelect) {
$prevRow.find('.quick-view').addClass('loading-overlay');
$.each($prevRow, function(index, elem) { $.each($prevRow, function(index, elem) {
$(elem).data($($instanceRow[index]).data()); $(elem).data($($instanceRow[index]).data());
}); });
@ -363,6 +364,9 @@
); );
}, },
error: function(message) { error: function(message) {
$instanceRow.removeClass('loading');
$instanceRow.find('td.quick-view').removeClass('loading-overlay');
if (!isHeader) { if (!isHeader) {
if (($.isPlainObject(args.action.createForm) && args.action.addRow != 'false') || if (($.isPlainObject(args.action.createForm) && args.action.addRow != 'false') ||
(!args.action.createForm && args.action.addRow == 'true')) { (!args.action.createForm && args.action.addRow == 'true')) {