aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMikael Nordfeldth <mmn@hethane.se>2015-01-12 12:13:03 +0100
committerMikael Nordfeldth <mmn@hethane.se>2015-01-12 12:13:03 +0100
commit44455bae2a458bd4fb076323c1c5d3ae54478671 (patch)
tree6312cc7cc28378ea47a99d6931ea77c0c957cc04 /js
parent8749c470ca86be510f952d381fefcd9e00755278 (diff)
downloadgnu-social-44455bae2a458bd4fb076323c1c5d3ae54478671.tar
gnu-social-44455bae2a458bd4fb076323c1c5d3ae54478671.zip
Make sure we add ajax=1 to inputform if using javascript
Diffstat (limited to 'js')
-rw-r--r--js/util.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/util.js b/js/util.js
index 6fabb1e13b..793626ed25 100644
--- a/js/util.js
+++ b/js/util.js
@@ -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 });
-
}
},