puts @'mentions directly in compose box
This commit is contained in:
parent
0700a71803
commit
2411b4fe79
4 changed files with 7 additions and 6 deletions
|
@ -112,7 +112,9 @@ function toggleAction(e) {
|
|||
// set focus, if appropriate
|
||||
var focus = el.getAttribute('data-focus-target');
|
||||
if (focus) {
|
||||
document.getElementById(focus).focus();
|
||||
var focusEl = document.getElementById(focus);
|
||||
focusEl.focus();
|
||||
setTimeout(function(){ focusEl.selectionStart = focusEl.selectionEnd = 10000; }, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue