diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-02 09:22:02 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-02 09:22:02 +0000 |
| commit | 6456ee498e082b4addb7b009bca7adb06eda9bb8 (patch) | |
| tree | 6d4c56f0d9cd419c90f8326d96986fbc0cd4ad31 /roundcubemail/program/js | |
| parent | 1fdf177e41e49009b675c5d58cbc0de9046425f3 (diff) | |
- Added confirmation dialog for contact group deleting + loading indicator
git-svn-id: https://svn.roundcube.net/trunk@5003 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
| -rw-r--r-- | roundcubemail/program/js/app.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 3bc4d9145..88f51a191 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -333,7 +333,7 @@ function rcube_webmail() this.enable_command('add', 'import', this.env.writable_source); this.enable_command('list', 'listgroup', 'advanced-search', true); - + // load contacts of selected source if (!this.env.action) this.command('list', this.env.source); @@ -4093,8 +4093,10 @@ function rcube_webmail() this.group_delete = function() { - if (this.env.group) - this.http_post('group-delete', '_source='+urlencode(this.env.source)+'&_gid='+urlencode(this.env.group), true); + if (this.env.group && confirm(this.get_label('deletegroupconfirm'))) { + var lock = this.set_busy(true, 'groupdeleting'); + this.http_post('group-delete', '_source='+urlencode(this.env.source)+'&_gid='+urlencode(this.env.group), lock); + } }; // callback from server upon group-delete command |
