click -> focus for reply placeholder trigger; lets keyboarders use it though not super ideal :D

This commit is contained in:
Brion Vibber 2011-03-10 16:23:18 -08:00
parent 2858f495fa
commit eef9786e36
2 changed files with 7 additions and 6 deletions

View File

@ -638,11 +638,12 @@ var SN = { // StatusNet
var placeholder = $('<li class="notice-reply-placeholder">' +
'<input class="placeholder">' +
'</li>');
placeholder.click(function() {
SN.U.NoticeInlineReplyTrigger(notice);
return false;
});
placeholder.find('input').val(SN.msg('reply_placeholder'));
placeholder.find('input')
.val(SN.msg('reply_placeholder'))
.focus(function() {
SN.U.NoticeInlineReplyTrigger(notice);
return false;
});
list.append(placeholder);
},

2
js/util.min.js vendored

File diff suppressed because one or more lines are too long