diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-04-23 15:37:14 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-04-23 15:37:14 +0200 |
commit | 7a2f4e503687228911e7584869fa1874e8d8b5cf (patch) | |
tree | 456171dfe66cc45271a7813daca3f516c9a1187e /lib/scripts/linkwiz.js | |
parent | 4c748889a0025e907a58f0aa1ea4bb3def9b5e58 (diff) | |
parent | fcf506ee6d1ecd6e676d7bd8daa334964ef46265 (diff) | |
download | rpg-7a2f4e503687228911e7584869fa1874e8d8b5cf.tar.gz rpg-7a2f4e503687228911e7584869fa1874e8d8b5cf.tar.bz2 |
Merge pull request #1125 from micgro42/linkwizCursorPos
Linkwizard: Move cursor to the end of the text in input
Diffstat (limited to 'lib/scripts/linkwiz.js')
-rw-r--r-- | lib/scripts/linkwiz.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/scripts/linkwiz.js b/lib/scripts/linkwiz.js index e8191dbcb..7c383ffe4 100644 --- a/lib/scripts/linkwiz.js +++ b/lib/scripts/linkwiz.js @@ -299,6 +299,11 @@ var dw_linkwiz = { dw_linkwiz.$wiz.show(); dw_linkwiz.$entry.focus(); dw_linkwiz.autocomplete(); + + // Move the cursor to the end of the input + var temp = dw_linkwiz.$entry.val(); + dw_linkwiz.$entry.val(''); + dw_linkwiz.$entry.val(temp); }, /** |