mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
List view: multi-select actions: Show loading icon during action
This commit is contained in:
parent
8b5ec64842
commit
2ac0013505
@ -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')) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user