WTF OPERA???

This commit is contained in:
Nicolas Stepien 2011-12-07 23:24:51 +01:00
parent 75f8ae0bd7
commit 0be30318c0
2 changed files with 2 additions and 2 deletions

View File

@ -1687,7 +1687,7 @@
caretPos = ta.selectionStart;
ta.value = ta.value.slice(0, caretPos) + text + ta.value.slice(ta.selectionEnd, ta.value.length);
ta.focus();
return ta.selectionStart = ta.selectionEnd = caretPos + text.length;
return ta.selectionEnd = ta.selectionStart = caretPos + text.length;
},
refresh: function() {
var m, newFile, oldFile, _ref;

View File

@ -1325,7 +1325,7 @@ qr =
ta.value = ta.value.slice(0, caretPos) + text + ta.value.slice(ta.selectionEnd, ta.value.length)
ta.focus()
#move the caret to the end of the new quote
ta.selectionStart = ta.selectionEnd = caretPos + text.length
ta.selectionEnd = ta.selectionStart = caretPos + text.length
refresh: ->
$('[name=sub]', qr.el).value = ''