Skip to content

Commit 2ac0013

Browse files
committed
List view: multi-select actions: Show loading icon during action
1 parent 8b5ec64 commit 2ac0013

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ui/scripts/ui/widgets/listView.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
// Make copy of previous row, in case data is needed
185185
$prevRow = $instanceRow.clone();
186186
if (multiSelect) {
187+
$prevRow.find('.quick-view').addClass('loading-overlay');
187188
$.each($prevRow, function(index, elem) {
188189
$(elem).data($($instanceRow[index]).data());
189190
});
@@ -363,6 +364,9 @@
363364
);
364365
},
365366
error: function(message) {
367+
$instanceRow.removeClass('loading');
368+
$instanceRow.find('td.quick-view').removeClass('loading-overlay');
369+
366370
if (!isHeader) {
367371
if (($.isPlainObject(args.action.createForm) && args.action.addRow != 'false') ||
368372
(!args.action.createForm && args.action.addRow == 'true')) {

0 commit comments

Comments
 (0)