diff options
author | thomascube <thomas@roundcube.net> | 2011-09-21 20:43:47 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-09-21 20:43:47 +0000 |
commit | d06e57fdf21879a4e93d6c00b939ca42094d3e86 (patch) | |
tree | ad0f6f5658558aa92480c0a4a7c1cf106df3a28a /program/js | |
parent | 5f71297bc972a5998dc5235e92762c27923f5489 (diff) |
Skip confirmation dialog when deleting a contact from a source that supports undelete operations
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/app.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js index 4b88958d9..52b3f6055 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3994,7 +3994,8 @@ function rcube_webmail() { // exit if no mailbox specified or if selection is empty var selection = this.contact_list.get_selection(); - if (!(selection.length || this.env.cid) || !confirm(this.get_label('deletecontactconfirm'))) + var undelete = this.env.address_sources[this.env.source].undelete; + if (!(selection.length || this.env.cid) || (!undelete && !confirm(this.get_label('deletecontactconfirm')))) return; var id, n, a_cids = [], qs = ''; |