From 003e9f2396000f8d76b96cb487e492a13667b58e Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 16 Jun 2015 23:45:51 +0200 Subject: [PATCH] Disable scroll event on dev --- couchpotato/static/scripts/page.js | 4 +++- couchpotato/templates/index.html | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/couchpotato/static/scripts/page.js b/couchpotato/static/scripts/page.js index 14580c9..7fd3f31 100644 --- a/couchpotato/static/scripts/page.js +++ b/couchpotato/static/scripts/page.js @@ -26,7 +26,9 @@ var PageBase = new Class({ }); // Stop hover events while scrolling - self.el.addEvent('scroll', self.preventHover.bind(self)); + if(!App.getOption('dev')){ + self.el.addEvent('scroll', self.preventHover.bind(self)); + } }, load: function(){ diff --git a/couchpotato/templates/index.html b/couchpotato/templates/index.html index 25adf42..5fe1af0 100644 --- a/couchpotato/templates/index.html +++ b/couchpotato/templates/index.html @@ -74,6 +74,7 @@ CategoryList.setup({{ json_encode(fireEvent('category.all', single = True)) }}); App.setup({ + 'dev': {{ json_encode(Env.get('dev')) }}, 'base_url': {{ json_encode(Env.get('web_base')) }}, 'args': {{ json_encode(Env.get('args', unicode = True)) }}, 'options': {{ json_encode(('%s' % Env.get('options'))) }},