mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Pick a better DOM node to put the loading indicator - using just the tree node from the action causes too many loading animations
This commit is contained in:
parent
ab490eadc1
commit
ef1596fd5a
@ -1962,14 +1962,16 @@ app.classes.mail = AppJS.extend(
|
|||||||
egw.debug('warn', "Move folder, but no target");
|
egw.debug('warn', "Move folder, but no target");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Some UI feedback while the folder is moved
|
// Some UI feedback while the folder is moved - using just the iface DOMNode would
|
||||||
$j(destination.iface.getDOMNode()).addClass('loading');
|
// put the load image in every row
|
||||||
|
var load_node = $j(destination.iface.getDOMNode()).closest('td').prev()
|
||||||
|
.addClass('loading');
|
||||||
|
|
||||||
for(var i = 0; i < _senders.length; i++)
|
for(var i = 0; i < _senders.length; i++)
|
||||||
{
|
{
|
||||||
egw.jsonq('mail.mail_ui.ajax_MoveFolder',[_senders[i].iface.id, destination.id],
|
egw.jsonq('mail.mail_ui.ajax_MoveFolder',[_senders[i].iface.id, destination.id],
|
||||||
// Move is done (successfully or not), remove loading
|
// Move is done (successfully or not), remove loading
|
||||||
function() {$j(destination.iface.getDOMNode()).removeClass('loading');}
|
function() {load_node.removeClass('loading');}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user