diff --git a/ui/gallery-prototype.js b/ui/gallery-prototype.js index 03afbafd..406c82d1 100755 --- a/ui/gallery-prototype.js +++ b/ui/gallery-prototype.js @@ -97,7 +97,7 @@ function createCSSClassToggler(elem, css_class, callback_a, callback_b){ callback_pre(action) } // play with the class... - if(state == 'on'){ + if(action == 'on'){ $(elem).addClass(css_class) } else { $(elem).removeClass(css_class)