Initially hide input forms on the top

The status input element would attract focus after page load, meaning
if you'd scrolled down a bit then you would be rocketed back up again!
This commit is contained in:
Mikael Nordfeldth
2015-01-16 11:19:22 +01:00
parent 96f30dd924
commit 8892702f0c
4 changed files with 11 additions and 3 deletions

View File

@@ -1437,8 +1437,8 @@ 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");
// Initially hide all tabs on the top of the page
SN.U.switchInputFormTab(null);
// Make inline reply forms self-close when clicking out.
$('body').on('click', function (e) {