Inherited indices too stronk

This commit is contained in:
Zixaphir 2013-05-07 23:53:42 -07:00
parent 0fbb87dd47
commit c40b978e1f
6 changed files with 16 additions and 33 deletions

View File

@ -3742,7 +3742,7 @@
id: 'scroll-marker'
}),
setBoardList: function() {
var a, boardList, btn, fourchannav, fullBoardList, settings;
var a, boardList, btn, fourchannav, fullBoardList;
fourchannav = $.id('boardNavDesktop');
if (a = $("a[href*='/" + g.BOARD + "/']", fourchannav)) {
@ -3756,9 +3756,8 @@
btn = $('.hide-board-list-button', fullBoardList);
$.on(btn, 'click', Header.toggleBoardList);
$.rm($('#navtopright', fullBoardList));
settings = $.id('navtopright');
$.prepend(d.body, settings);
$.add(settings, Header.menuButton);
$.prepend(d.body, $.id('navtopright'));
$.add(d.body, Header.menuButton);
$.add(boardList, fullBoardList);
$.add(Header.bar, [Header.shortcuts, boardList, Header.notify, Header.toggle]);
Header.setCustomNav(Conf['Custom Board Navigation']);
@ -13029,11 +13028,7 @@
if (!Main.isThisPageLegit()) {
return;
}
return $.asap((function() {
return $.id('boardNavMobile');
}), function() {
return $.prepend($.id('navtopright'), [$.tn(' ['), link, $.tn('] ')]);
});
return $.add(d.body, link);
});
$.get('previousversion', null, function(item) {
var changelog, curr, el, prev, previous;

View File

@ -3738,7 +3738,7 @@
id: 'scroll-marker'
}),
setBoardList: function() {
var a, boardList, btn, fourchannav, fullBoardList, settings;
var a, boardList, btn, fourchannav, fullBoardList;
fourchannav = $.id('boardNavDesktop');
if (a = $("a[href*='/" + g.BOARD + "/']", fourchannav)) {
@ -3752,9 +3752,8 @@
btn = $('.hide-board-list-button', fullBoardList);
$.on(btn, 'click', Header.toggleBoardList);
$.rm($('#navtopright', fullBoardList));
settings = $.id('navtopright');
$.prepend(d.body, settings);
$.add(settings, Header.menuButton);
$.prepend(d.body, $.id('navtopright'));
$.add(d.body, Header.menuButton);
$.add(boardList, fullBoardList);
$.add(Header.bar, [Header.shortcuts, boardList, Header.notify, Header.toggle]);
Header.setCustomNav(Conf['Custom Board Navigation']);
@ -13050,11 +13049,7 @@
if (!Main.isThisPageLegit()) {
return;
}
return $.asap((function() {
return $.id('boardNavMobile');
}), function() {
return $.prepend($.id('navtopright'), [$.tn(' ['), link, $.tn('] ')]);
});
return $.add(d.body, link);
});
$.get('previousversion', null, function(item) {
var changelog, curr, el, prev, previous;

Binary file not shown.

View File

@ -3740,7 +3740,7 @@
id: 'scroll-marker'
}),
setBoardList: function() {
var a, boardList, btn, fourchannav, fullBoardList, settings;
var a, boardList, btn, fourchannav, fullBoardList;
fourchannav = $.id('boardNavDesktop');
if (a = $("a[href*='/" + g.BOARD + "/']", fourchannav)) {
@ -3754,9 +3754,8 @@
btn = $('.hide-board-list-button', fullBoardList);
$.on(btn, 'click', Header.toggleBoardList);
$.rm($('#navtopright', fullBoardList));
settings = $.id('navtopright');
$.prepend(d.body, settings);
$.add(settings, Header.menuButton);
$.prepend(d.body, $.id('navtopright'));
$.add(d.body, Header.menuButton);
$.add(boardList, fullBoardList);
$.add(Header.bar, [Header.shortcuts, boardList, Header.notify, Header.toggle]);
Header.setCustomNav(Conf['Custom Board Navigation']);
@ -13033,11 +13032,7 @@
if (!Main.isThisPageLegit()) {
return;
}
return $.asap((function() {
return $.id('boardNavMobile');
}), function() {
return $.prepend($.id('navtopright'), [$.tn(' ['), link, $.tn('] ')]);
});
return $.add(d.body, link);
});
$.get('previousversion', null, function(item) {
var changelog, curr, el, prev, previous;

View File

@ -93,10 +93,9 @@ Header =
$.on btn, 'click', Header.toggleBoardList
$.rm $ '#navtopright', fullBoardList
settings = $.id('navtopright')
$.prepend d.body, settings
$.add settings, Header.menuButton
$.prepend d.body, $.id('navtopright')
$.add d.body, Header.menuButton
$.add boardList, fullBoardList
$.add Header.bar, [Header.shortcuts, boardList, Header.notify, Header.toggle]

View File

@ -11,8 +11,7 @@ Settings =
return unless Main.isThisPageLegit()
# Wait for #boardNavMobile instead of #boardNavDesktop,
# it might be incomplete otherwise.
$.asap (-> $.id 'boardNavMobile'), ->
$.prepend $.id('navtopright'), [$.tn(' ['), link, $.tn('] ')]
$.add d.body, link
$.get 'previousversion', null, (item) ->
if previous = item['previousversion']