mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Implement progress indicator for mail folders d-n-d
This commit is contained in:
parent
ee8762f84b
commit
748eb1ea2f
@ -3142,16 +3142,19 @@ app.classes.mail = AppJS.extend(
|
||||
egw.debug('warn', "Move folder, but no target");
|
||||
return;
|
||||
}
|
||||
// Some UI feedback while the folder is moved - using just the iface DOMNode would
|
||||
// put the load image in every row
|
||||
var load_node = $j(destination.iface.getDOMNode()).closest('td').prev()
|
||||
.addClass('loading');
|
||||
|
||||
var ftree = this.et2.getWidgetById(this.nm_index+'[foldertree]');
|
||||
egw.message (egw.lang('Folder %1 is moving to folder %2',_senders[0].id, destination.id));
|
||||
egw.loading_prompt('mail_moveFolder', true,'','#egw_fw_basecontainer');
|
||||
for(var i = 0; i < _senders.length; i++)
|
||||
{
|
||||
egw.jsonq('mail.mail_ui.ajax_MoveFolder',[_senders[i].id, destination.id],
|
||||
// Move is done (successfully or not), remove loading
|
||||
function() {load_node.removeClass('loading');}
|
||||
function() {
|
||||
var id = destination.id.split('::');
|
||||
//refersh the top parent
|
||||
ftree.refreshItem(id[0],null);
|
||||
egw.loading_prompt('mail_moveFolder', false);
|
||||
}
|
||||
);
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user