summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-11-05 11:53:36 +0000
committeralecpl <alec@alec.pl>2010-11-05 11:53:36 +0000
commit9be483ce0d4a6fbeadf647e492ab7dd0e35ae7cc (patch)
tree0f04f79dfa8619d9d15b6e68f345dac768c4af38 /program/js/app.js
parentcb105aa9f12396d1644e87d91c35e8f5c3eefbbd (diff)
- Enable autocomplete for all address fields
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 13711ff97..620126cde 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2801,17 +2801,18 @@ function rcube_webmail()
if (!this.gui_objects.messageform)
return false;
- //this.messageform = this.gui_objects.messageform;
- var input_from = $("[name='_from']");
- var input_to = $("[name='_to']");
- var input_subject = $("input[name='_subject']");
- var input_message = $("[name='_message']").get(0);
- var html_mode = $("input[name='_is_html']").val() == '1';
+ var input_from = $("[name='_from']"),
+ input_to = $("[name='_to']"),
+ input_subject = $("input[name='_subject']"),
+ input_message = $("[name='_message']").get(0),
+ html_mode = $("input[name='_is_html']").val() == '1',
+ ac_fields = ['cc', 'bcc', 'replyto', 'mailreplyto', 'mailfollowupto'];
// init live search events
this.init_address_input_events(input_to);
- this.init_address_input_events($("[name='_cc']"));
- this.init_address_input_events($("[name='_bcc']"));
+ for (var i in ac_fields) {
+ this.init_address_input_events($("[name='_"+ac_fields[i]+"']"));
+ }
if (!html_mode) {
this.set_caret_pos(input_message, this.env.top_posting ? 0 : $(input_message).val().length);