From 18f6c17fedb0762d4a4c2f3b9bfba4e703300f8c Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 16 May 2014 14:01:26 -0700 Subject: [PATCH] move JSON top navlinks to their position in vanilla --- src/General/Index.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 25e024c31..f6319a25c 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -100,7 +100,9 @@ Index = $.rm navLink for navLink in $$ '.navLinks' $.id('search-box')?.parentNode.remove() - $.after $.x('child::form/preceding-sibling::hr[1]'), Index.navLinks + topNavPos = $.id('delform').previousElementSibling + $.before topNavPos, ($.el 'hr', className: 'desktop') if g.VIEW is 'index' + $.before topNavPos, Index.navLinks $.rmClass doc, 'index-loading' $.asap (-> $('.pagelist', doc) or d.readyState isnt 'loading'), ->