summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-09-04 10:08:42 +0200
committerThomas Bruederli <thomas@roundcube.net>2013-09-04 10:08:42 +0200
commit0933d66b591056358b5e645cbd563814308998d2 (patch)
treecd4025d234c04e615f357922669b09edd59da20a /program/js/app.js
parent80b3c6200ee7788bef1bca0562aa53113ffea9bd (diff)
Keep current selection on IE browsers by adding unselectable=on to link elements
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js
index cef688204..5233d9c9a 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -258,12 +258,12 @@ function rcube_webmail()
this.env.address_group_stack = [];
this.env.compose_commands = ['send-attachment', 'remove-attachment', 'send', 'cancel',
'toggle-editor', 'list-adresses', 'pushgroup', 'search', 'reset-search', 'extwin',
- 'insert-response', 'save-response', 'edit-responses'];
+ 'insert-response', 'save-response'];
if (this.env.drafts_mailbox)
this.env.compose_commands.push('savedraft')
- this.enable_command(this.env.compose_commands, 'identities', true);
+ this.enable_command(this.env.compose_commands, 'identities', 'responses', true);
// add more commands (not enabled)
$.merge(this.env.compose_commands, ['add-recipient', 'firstpage', 'previouspage', 'nextpage', 'lastpage']);
@@ -277,6 +277,7 @@ function rcube_webmail()
// init canned response functions
if (this.gui_objects.responseslist) {
$('a.insertresponse', this.gui_objects.responseslist)
+ .attr('unselectable', 'on')
.mousedown(function(e){ return rcube_event.cancel(e); })
.mouseup(function(e){
ref.command('insert-response', $(this).attr('rel'));
@@ -3458,7 +3459,7 @@ function rcube_webmail()
this.edit_responses = function()
{
- // TODO: decide what to do here...
+ // TODO: implement inline editing of responses
};
this.delete_response = function(key)