Browse Source

Disable scroll event on dev

pull/5180/head
Ruud 10 years ago
parent
commit
003e9f2396
  1. 4
      couchpotato/static/scripts/page.js
  2. 1
      couchpotato/templates/index.html

4
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(){

1
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'))) }},

Loading…
Cancel
Save