fix focus

v1.18.x
Barış Soner Uşaklı 10 years ago
parent 436a9a61b8
commit 5fda8422c5

@ -439,13 +439,11 @@ define('composer', [
}
function focusElements(postContainer) {
var title = postContainer.find('.title'),
bodyEl = postContainer.find('textarea');
if (title.is(':disabled')) {
bodyEl.focus().putCursorAtEnd();
} else {
var title = postContainer.find('input.title');
if (title.length) {
title.focus();
} else {
postContainer.find('textarea').focus().putCursorAtEnd();
}
}

Loading…
Cancel
Save