Make sure we add ajax=1 to inputform if using javascript

This commit is contained in:
Mikael Nordfeldth 2015-01-12 12:13:03 +01:00
parent 8749c470ca
commit 44455bae2a
1 changed files with 3 additions and 1 deletions

View File

@ -1437,6 +1437,9 @@ var SN = { // StatusNet
// SN.Init.NoticeFormSetup() will get run
// when forms get displayed for the first time...
// Initially show Status tab
SN.U.switchInputFormTab("status");
// Make inline reply forms self-close when clicking out.
$('body').on('click', function (e) {
var currentForm = $('#content .input_forms div.current');
@ -1476,7 +1479,6 @@ var SN = { // StatusNet
// Infield labels for notice form inputs.
$('.input_forms fieldset fieldset label').inFieldLabels({ fadeOpacity:0 });
}
},