projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
copy over a sneaky undefined value
[dygraphs.git]
/
gallery
/
color-visibility.js
diff --git
a/gallery/color-visibility.js
b/gallery/color-visibility.js
index
cf3e0e3
..
5e5cc96
100644
(file)
--- a/
gallery/color-visibility.js
+++ b/
gallery/color-visibility.js
@@
-1,3
+1,5
@@
+/*global Gallery,Dygraph,data,$ */
+/*jshint unused:false */
Gallery.register(
'color-visibility',
{
Gallery.register(
'color-visibility',
{
@@
-27,8
+29,9
@@
Gallery.register(
visibility: [true, true, true]
});
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);
+ });
}
});
}
});