summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-09-19 17:56:14 +0200
committerThomas Bruederli <thomas@roundcube.net>2013-09-19 17:56:14 +0200
commit9c41ba3c9ebbb14d01abe961c420f71f9463e61a (patch)
tree43c2d4c12bbb24a05c7edea7a91f0e01c375c543 /program/js/app.js
parentcc041fe11c1997902f68f4ca8e95577e963a0053 (diff)
Allow sysadmins to define static responses which are immutable for the user
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index abe267a6d..5943ad0fd 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -447,7 +447,7 @@ function rcube_webmail()
this.responses_list = new rcube_list_widget(this.gui_objects.responseslist, {multiselect:false, draggable:false, keyboard:false});
this.responses_list.addEventListener('select', function(list){
var win, id = list.get_single_selection();
- p.enable_command('delete', !!id);
+ p.enable_command('delete', !!id && $.inArray(id, p.env.readonly_responses) < 0);
if (id && (win = p.get_frame_window(p.env.contentframe))) {
p.set_busy(true);
p.location_href({ _action:'edit-response', _key:id, _framed:1 }, win);