From f95a84ac60a82526c477da52665d63095279f319 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sat, 8 Mar 2014 17:26:07 -0700 Subject: [PATCH] Make sure they have values *before* we rice them. --- builds/appchan-x.user.js | 2 +- builds/crx/script.js | 2 +- src/General/Index.coffee | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index bbe56dcb5..1b2cbf398 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -4757,7 +4757,6 @@ className: 'navLinks', innerHTML: "Return Bottom  " }); - Rice.nodes(this.navLinks); this.searchInput = $('#index-search', this.navLinks); this.searchTest(); this.hideLabel = $('#hidden-label', this.navLinks); @@ -4776,6 +4775,7 @@ $.on(this.selectMode, 'change', this.cb.mode); $.on(this.selectSort, 'change', this.cb.sort); $.on(this.selectSize, 'change', this.cb.size); + Rice.nodes(this.navLinks); this.currentPage = this.getCurrentPage(); $.on(d, 'scroll', Index.scroll); $.on(this.pagelist, 'click', this.cb.pageNav); diff --git a/builds/crx/script.js b/builds/crx/script.js index cb13c1641..f378d7153 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -4815,7 +4815,6 @@ className: 'navLinks', innerHTML: "Return Bottom  " }); - Rice.nodes(this.navLinks); this.searchInput = $('#index-search', this.navLinks); this.searchTest(); this.hideLabel = $('#hidden-label', this.navLinks); @@ -4834,6 +4833,7 @@ $.on(this.selectMode, 'change', this.cb.mode); $.on(this.selectSort, 'change', this.cb.sort); $.on(this.selectSize, 'change', this.cb.size); + Rice.nodes(this.navLinks); this.currentPage = this.getCurrentPage(); $.on(d, 'scroll', Index.scroll); $.on(this.pagelist, 'click', this.cb.pageNav); diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 82afec56d..a99066c80 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -94,8 +94,6 @@ Index = className: 'navLinks' innerHTML: <%= importHTML('Features/Index-navlinks') %> - Rice.nodes @navLinks - @searchInput = $ '#index-search', @navLinks @searchTest() @@ -114,6 +112,8 @@ Index = $.on @selectSort, 'change', @cb.sort $.on @selectSize, 'change', @cb.size + Rice.nodes @navLinks + @currentPage = @getCurrentPage() $.on d, 'scroll', Index.scroll