diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-05-02 09:57:17 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-05-02 11:29:45 +0200 |
commit | 80acbd62df7bb175cf86f162e1dcb6dc95e67d26 (patch) | |
tree | 115d53afdd04f49f021974e2d43f83c1519e540e | |
parent | 2ff8b45c48dd12732d5e393baa0a6d4367d329d5 (diff) |
Replace setSelectionRange() call with universal rcmail.set_caret_pos()
-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 beb054bf2..0f76da01e 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -4333,9 +4333,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 }); |