Small order change.

Loose file and cruft.
This commit is contained in:
Zixaphir 2013-05-08 00:22:49 -07:00
parent c40b978e1f
commit cbacb28fa1
7 changed files with 16 additions and 43 deletions

View File

@ -1,5 +1,5 @@
/*
* appchan x - Version 2.0.0 - 2013-05-07
* appchan x - Version 2.0.0 - 2013-05-08
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE

View File

@ -19,7 +19,7 @@
// ==/UserScript==
/*
* appchan x - Version 2.0.0 - 2013-05-07
* appchan x - Version 2.0.0 - 2013-05-08
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -3645,7 +3645,7 @@
Header = {
init: function() {
var barFixedToggler, barPositionToggler, customNavToggler, editCustomNav, footerToggler, headerToggler,
var barFixedToggler, barPositionToggler, customNavToggler, editCustomNav, headerToggler,
_this = this;
this.menu = new UI.Menu('header');
@ -3665,9 +3665,6 @@
customNavToggler = $.el('label', {
innerHTML: '<input type=checkbox name="Custom Board Navigation"> Custom board navigation'
});
footerToggler = $.el('label', {
innerHTML: "<input type=checkbox " + (!Conf['Bottom Board List'] ? 'checked' : '') + "> Hide bottom board list"
});
editCustomNav = $.el('a', {
textContent: 'Edit custom board navigation',
href: 'javascript:;'
@ -3675,17 +3672,15 @@
this.barFixedToggler = barFixedToggler.firstElementChild;
this.barPositionToggler = barPositionToggler.firstElementChild;
this.headerToggler = headerToggler.firstElementChild;
this.footerToggler = footerToggler.firstElementChild;
this.customNavToggler = customNavToggler.firstElementChild;
this.setBarFixed(Conf['Fixed Header']);
this.setBarVisibility(Conf['Header auto-hide']);
$.on(this.menuButton, 'click', this.menuToggle);
$.on(this.barFixedToggler, 'change', this.toggleBarFixed);
$.on(this.barPositionToggler, 'change', this.toggleBarPosition);
$.on(this.headerToggler, 'change', this.toggleBarVisibility);
$.on(this.footerToggler, 'change', this.toggleFooterVisibility);
$.on(this.customNavToggler, 'change', this.toggleCustomNav);
$.on(editCustomNav, 'click', this.editCustomNav);
this.setBarFixed(Conf['Fixed Header']);
this.setBarVisibility(Conf['Header auto-hide']);
$.sync('Fixed Header', Header.setBarFixed);
$.sync('Bottom Header', Header.setBarPosition);
$.event('AddMenuEntry', {
@ -3701,8 +3696,6 @@
el: headerToggler
}, {
el: barPositionToggler
}, {
el: footerToggler
}, {
el: customNavToggler
}, {

View File

@ -19,7 +19,7 @@
// ==/UserScript==
/*
* appchan x - Version 2.0.0 - 2013-05-07
* appchan x - Version 2.0.0 - 2013-05-08
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -3641,7 +3641,7 @@
Header = {
init: function() {
var barFixedToggler, barPositionToggler, customNavToggler, editCustomNav, footerToggler, headerToggler,
var barFixedToggler, barPositionToggler, customNavToggler, editCustomNav, headerToggler,
_this = this;
this.menu = new UI.Menu('header');
@ -3661,9 +3661,6 @@
customNavToggler = $.el('label', {
innerHTML: '<input type=checkbox name="Custom Board Navigation"> Custom board navigation'
});
footerToggler = $.el('label', {
innerHTML: "<input type=checkbox " + (!Conf['Bottom Board List'] ? 'checked' : '') + "> Hide bottom board list"
});
editCustomNav = $.el('a', {
textContent: 'Edit custom board navigation',
href: 'javascript:;'
@ -3671,17 +3668,15 @@
this.barFixedToggler = barFixedToggler.firstElementChild;
this.barPositionToggler = barPositionToggler.firstElementChild;
this.headerToggler = headerToggler.firstElementChild;
this.footerToggler = footerToggler.firstElementChild;
this.customNavToggler = customNavToggler.firstElementChild;
this.setBarFixed(Conf['Fixed Header']);
this.setBarVisibility(Conf['Header auto-hide']);
$.on(this.menuButton, 'click', this.menuToggle);
$.on(this.barFixedToggler, 'change', this.toggleBarFixed);
$.on(this.barPositionToggler, 'change', this.toggleBarPosition);
$.on(this.headerToggler, 'change', this.toggleBarVisibility);
$.on(this.footerToggler, 'change', this.toggleFooterVisibility);
$.on(this.customNavToggler, 'change', this.toggleCustomNav);
$.on(editCustomNav, 'click', this.editCustomNav);
this.setBarFixed(Conf['Fixed Header']);
this.setBarVisibility(Conf['Header auto-hide']);
$.sync('Fixed Header', Header.setBarFixed);
$.sync('Bottom Header', Header.setBarPosition);
$.event('AddMenuEntry', {
@ -3697,8 +3692,6 @@
el: headerToggler
}, {
el: barPositionToggler
}, {
el: footerToggler
}, {
el: customNavToggler
}, {

Binary file not shown.

View File

@ -1,5 +1,5 @@
/*
* appchan x - Version 2.0.0 - 2013-05-07
* appchan x - Version 2.0.0 - 2013-05-08
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -3643,7 +3643,7 @@
Header = {
init: function() {
var barFixedToggler, barPositionToggler, customNavToggler, editCustomNav, footerToggler, headerToggler,
var barFixedToggler, barPositionToggler, customNavToggler, editCustomNav, headerToggler,
_this = this;
this.menu = new UI.Menu('header');
@ -3663,9 +3663,6 @@
customNavToggler = $.el('label', {
innerHTML: '<input type=checkbox name="Custom Board Navigation"> Custom board navigation'
});
footerToggler = $.el('label', {
innerHTML: "<input type=checkbox " + (!Conf['Bottom Board List'] ? 'checked' : '') + "> Hide bottom board list"
});
editCustomNav = $.el('a', {
textContent: 'Edit custom board navigation',
href: 'javascript:;'
@ -3673,17 +3670,15 @@
this.barFixedToggler = barFixedToggler.firstElementChild;
this.barPositionToggler = barPositionToggler.firstElementChild;
this.headerToggler = headerToggler.firstElementChild;
this.footerToggler = footerToggler.firstElementChild;
this.customNavToggler = customNavToggler.firstElementChild;
this.setBarFixed(Conf['Fixed Header']);
this.setBarVisibility(Conf['Header auto-hide']);
$.on(this.menuButton, 'click', this.menuToggle);
$.on(this.barFixedToggler, 'change', this.toggleBarFixed);
$.on(this.barPositionToggler, 'change', this.toggleBarPosition);
$.on(this.headerToggler, 'change', this.toggleBarVisibility);
$.on(this.footerToggler, 'change', this.toggleFooterVisibility);
$.on(this.customNavToggler, 'change', this.toggleCustomNav);
$.on(editCustomNav, 'click', this.editCustomNav);
this.setBarFixed(Conf['Fixed Header']);
this.setBarVisibility(Conf['Header auto-hide']);
$.sync('Fixed Header', Header.setBarFixed);
$.sync('Bottom Header', Header.setBarPosition);
$.event('AddMenuEntry', {
@ -3699,8 +3694,6 @@
el: headerToggler
}, {
el: barPositionToggler
}, {
el: footerToggler
}, {
el: customNavToggler
}, {

View File

@ -1 +0,0 @@
2.0.0

View File

@ -13,8 +13,6 @@ Header =
innerHTML: '<input type=checkbox name="Bottom header"> Bottom header'
customNavToggler = $.el 'label',
innerHTML: '<input type=checkbox name="Custom Board Navigation"> Custom board navigation'
footerToggler = $.el 'label',
innerHTML: "<input type=checkbox #{unless Conf['Bottom Board List'] then 'checked' else ''}> Hide bottom board list"
editCustomNav = $.el 'a',
textContent: 'Edit custom board navigation'
href: 'javascript:;'
@ -22,20 +20,18 @@ Header =
@barFixedToggler = barFixedToggler.firstElementChild
@barPositionToggler = barPositionToggler.firstElementChild
@headerToggler = headerToggler.firstElementChild
@footerToggler = footerToggler.firstElementChild
@customNavToggler = customNavToggler.firstElementChild
@setBarFixed Conf['Fixed Header']
@setBarVisibility Conf['Header auto-hide']
$.on @menuButton, 'click', @menuToggle
$.on @barFixedToggler, 'change', @toggleBarFixed
$.on @barPositionToggler, 'change', @toggleBarPosition
$.on @headerToggler, 'change', @toggleBarVisibility
$.on @footerToggler, 'change', @toggleFooterVisibility
$.on @customNavToggler, 'change', @toggleCustomNav
$.on editCustomNav, 'click', @editCustomNav
@setBarFixed Conf['Fixed Header']
@setBarVisibility Conf['Header auto-hide']
$.sync 'Fixed Header', Header.setBarFixed
$.sync 'Bottom Header', Header.setBarPosition
@ -48,7 +44,6 @@ Header =
{el: barFixedToggler}
{el: headerToggler}
{el: barPositionToggler}
{el: footerToggler}
{el: customNavToggler}
{el: editCustomNav}
]