diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-09-23 11:18:49 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-09-23 11:18:49 +0000 |
| commit | 55b41c1135d2d9c118da73e2f938acc5d153d844 (patch) | |
| tree | fd77b6fe6bcb8277e847452dc62b4b91c793e9fe /roundcubemail/program/js/app.js | |
| parent | 990096ff91cf031188d6ba48b36c722325187f41 (diff) | |
- Add loading indicator on contact delete
git-svn-id: https://svn.roundcube.net/trunk@5276 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
| -rw-r--r-- | roundcubemail/program/js/app.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 26b953932..a2092563f 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -4019,8 +4019,9 @@ function rcube_webmail() this.delete_contacts = function() { // exit if no mailbox specified or if selection is empty - var selection = this.contact_list.get_selection(); - var undelete = this.env.address_sources[this.env.source].undelete; + var selection = this.contact_list.get_selection(), + undelete = this.env.address_sources[this.env.source].undelete; + if (!(selection.length || this.env.cid) || (!undelete && !confirm(this.get_label('deletecontactconfirm')))) return; @@ -4048,7 +4049,10 @@ function rcube_webmail() qs += '&_search='+this.env.search_request; // send request to server - this.http_post('delete', '_cid='+urlencode(a_cids.join(','))+'&_source='+urlencode(this.env.source)+'&_from='+(this.env.action ? this.env.action : '')+qs); + this.http_post('delete', '_cid='+urlencode(a_cids.join(',')) + +'&_source='+urlencode(this.env.source) + +'&_from='+(this.env.action ? this.env.action : '')+qs, + this.display_message(this.get_label('contactdeleting'), 'loading')); return true; }; |
