]> git.joonet.de Git - adminer.git/commitdiff
Caret is at the end after setting the value
authorJakub Vrana <jakub@vrana.cz>
Fri, 19 Nov 2010 14:50:09 +0000 (15:50 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 19 Nov 2010 14:50:09 +0000 (15:50 +0100)
adminer/static/functions.js

index b5450f6e07a343aa8f0709978c2ab12af509fb5a..8ba351f12e2456e90444cd243a1ff30311237f95 100644 (file)
@@ -337,7 +337,7 @@ function selectDblClick(td, event, text) {
        input.selectionEnd = pos;
        if (document.selection) {
                var range = document.selection.createRange();
-               range.moveStart('character', pos);
+               range.moveEnd('character', -input.value.length + pos);
                range.select();
        }
 }