forked from GNUsocial/gnu-social
Make sure we add ajax=1 to inputform if using javascript
This commit is contained in:
parent
8749c470ca
commit
44455bae2a
@ -1437,6 +1437,9 @@ var SN = { // StatusNet
|
|||||||
// SN.Init.NoticeFormSetup() will get run
|
// SN.Init.NoticeFormSetup() will get run
|
||||||
// when forms get displayed for the first time...
|
// 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.
|
// 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');
|
var currentForm = $('#content .input_forms div.current');
|
||||||
@ -1476,7 +1479,6 @@ var SN = { // StatusNet
|
|||||||
|
|
||||||
// Infield labels for notice form inputs.
|
// Infield labels for notice form inputs.
|
||||||
$('.input_forms fieldset fieldset label').inFieldLabels({ fadeOpacity:0 });
|
$('.input_forms fieldset fieldset label').inFieldLabels({ fadeOpacity:0 });
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user