...and don't hide it at all since we don't have a placeholder now
This commit is contained in:
parent
59ec9c6988
commit
d318b5c10e
15
js/util.js
15
js/util.js
@ -1450,21 +1450,6 @@ var SN = { // StatusNet
|
|||||||
|
|
||||||
// Make inline reply forms self-close when clicking out.
|
// Make inline reply forms self-close when clicking out.
|
||||||
$('body').on('click', function (e) {
|
$('body').on('click', function (e) {
|
||||||
var currentForm = $('#content .input_forms div.current');
|
|
||||||
if (currentForm.length > 0) {
|
|
||||||
if ($('#content .input_forms').has(e.target).length == 0) {
|
|
||||||
// If all fields are empty, switch back to the placeholder.
|
|
||||||
var fields = currentForm.find('textarea, input[type=text], input[type=""]');
|
|
||||||
var anything = false;
|
|
||||||
fields.each(function () {
|
|
||||||
anything = anything || $(this).val();
|
|
||||||
});
|
|
||||||
if (!anything) {
|
|
||||||
SN.U.switchInputFormTab(null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var openReplies = $('li.notice-reply');
|
var openReplies = $('li.notice-reply');
|
||||||
if (openReplies.length > 0) {
|
if (openReplies.length > 0) {
|
||||||
var target = $(e.target);
|
var target = $(e.target);
|
||||||
|
Loading…
Reference in New Issue
Block a user