diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-05-02 09:57:17 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-05-02 09:57:17 +0200 |
commit | 3dfb94fe45150c9c662c384b03e0866a1445a567 (patch) | |
tree | bcdf7a24ffd75a14e782f12133f7e607fe553711 /program | |
parent | b0ce5c62aff3c99e4e0bf09eae9a933f57b1f103 (diff) |
Replace setSelectionRange() call with universal rcmail.set_caret_pos()
Diffstat (limited to 'program')
-rw-r--r-- | program/js/app.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js index 5262bd73a..5055b4d42 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -4462,9 +4462,7 @@ function rcube_webmail() this.ksearch_input.value = pre + insert + end; // set caret to insert pos - cpos = p+insert.length; - if (this.ksearch_input.setSelectionRange) - this.ksearch_input.setSelectionRange(cpos, cpos); + this.set_caret_pos(this.ksearch_input, p + insert.length); if (trigger) { this.triggerEvent('autocomplete_insert', { field:this.ksearch_input, insert:insert, data:this.env.contacts[id] }); |