forked from GNUsocial/gnu-social
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:
parent
96f30dd924
commit
8892702f0c
@ -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) {
|
||||
|
@ -726,6 +726,8 @@ class Action extends HTMLOutputter // lawsuit
|
||||
|
||||
$this->elementStart('div', 'input_forms');
|
||||
|
||||
$this->element('label', array('for'=>'input_form_nav'), _m('TAB', 'Share your:'));
|
||||
|
||||
if (Event::handle('StartShowEntryForms', array(&$tabs))) {
|
||||
$this->elementStart('ul', array('class' => 'nav',
|
||||
'id' => 'input_form_nav'));
|
||||
|
@ -23,7 +23,7 @@ define('GNUSOCIAL_ENGINE', 'GNU social');
|
||||
define('GNUSOCIAL_ENGINE_URL', 'https://www.gnu.org/software/social/');
|
||||
|
||||
define('GNUSOCIAL_BASE_VERSION', '1.1.3');
|
||||
define('GNUSOCIAL_LIFECYCLE', 'beta'); // 'dev', 'alpha[0-9]+', 'beta[0-9]+', 'rc[0-9]+', 'release'
|
||||
define('GNUSOCIAL_LIFECYCLE', 'beta1'); // 'dev', 'alpha[0-9]+', 'beta[0-9]+', 'rc[0-9]+', 'release'
|
||||
|
||||
define('GNUSOCIAL_VERSION', GNUSOCIAL_BASE_VERSION . '-' . GNUSOCIAL_LIFECYCLE);
|
||||
|
||||
|
@ -254,6 +254,12 @@ address .poweredby {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.input_forms > label {
|
||||
float: left;
|
||||
margin-right: 1em;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
#input_form_nav {
|
||||
float: left;
|
||||
margin-bottom: 10px;
|
||||
|
Loading…
Reference in New Issue
Block a user