+/*global Gallery,Dygraph,data,$ */
+/*jshint unused:false */
Gallery.register(
'color-visibility',
{
visibility: [true, true, true]
});
- function change(el) {
- g.setVisibility(el.id, el.checked);
- }
+ $('input[type=checkbox]').click(function() {
+ var el = this;
+ g.setVisibility(el.id, el.checked);
+ });
}
});