summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-11-02 13:28:14 +0000
committerSarven Capadisli <csarven@status.net>2009-11-02 13:28:14 +0000
commitebd604cf6b6fda6823437cafc1d2db3eb23d9f41 (patch)
tree98d76a30e46fc139323ede3e0f50ff29d8c75d80 /js
parent412052cd7e721c3483baf6aecc6d6e92cc7ebef7 (diff)
Minor
Diffstat (limited to 'js')
-rw-r--r--js/util.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/util.js b/js/util.js
index 210459844..b572846b7 100644
--- a/js/util.js
+++ b/js/util.js
@@ -287,10 +287,10 @@ var SN = { // StatusNet
replyto = '@' + nick + ' ';
text.val(replyto + text.val().replace(RegExp(replyto, 'i'), ''));
$('#'+SN.C.S.FormNotice+' input#'+SN.C.S.NoticeInReplyTo).val(id);
- if (text.get(0).setSelectionRange) {
+ if (text[0].setSelectionRange) {
var len = text.val().length;
- text.get(0).setSelectionRange(len,len);
- text.get(0).focus();
+ text[0].setSelectionRange(len,len);
+ text[0].focus();
}
return false;
}
@@ -369,7 +369,7 @@ var SN = { // StatusNet
var NDMF = $('.entity_send-a-message form');
if (NDMF.length == 0) {
$.get(NDM.attr('href'), null, function(data) {
- $('.entity_send-a-message').append(document._importNode($('form', data).get(0), true));
+ $('.entity_send-a-message').append(document._importNode($('form', data)[0], true));
NDMF = $('.entity_send-a-message .form_notice');
SN.U.FormNoticeEnhancements(NDMF);
NDMF.append('<button class="close">&#215;</button>');