mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 06:31:59 +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");
|
egw.debug('warn', "Move folder, but no target");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Some UI feedback while the folder is moved - using just the iface DOMNode would
|
var ftree = this.et2.getWidgetById(this.nm_index+'[foldertree]');
|
||||||
// put the load image in every row
|
egw.message (egw.lang('Folder %1 is moving to folder %2',_senders[0].id, destination.id));
|
||||||
var load_node = $j(destination.iface.getDOMNode()).closest('td').prev()
|
egw.loading_prompt('mail_moveFolder', true,'','#egw_fw_basecontainer');
|
||||||
.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].id, destination.id],
|
egw.jsonq('mail.mail_ui.ajax_MoveFolder',[_senders[i].id, destination.id],
|
||||||
// Move is done (successfully or not), remove loading
|
// 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