diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-04-13 05:39:23 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-04-13 05:39:23 +0000 |
commit | ed3d68435f042ff6bc212022058310255db0e1bd (patch) | |
tree | 3fd48baf75ea64353af82ab86f7b76b53d24e11f /js/farbtastic/farbtastic.go.js | |
parent | 4a8c23fe32cf0f3c556dfa062dcffedd77fd5857 (diff) |
Using farbtastic jQuery plugin to select design colours.
Diffstat (limited to 'js/farbtastic/farbtastic.go.js')
-rw-r--r-- | js/farbtastic/farbtastic.go.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/farbtastic/farbtastic.go.js b/js/farbtastic/farbtastic.go.js new file mode 100644 index 000000000..21a1530bc --- /dev/null +++ b/js/farbtastic/farbtastic.go.js @@ -0,0 +1,10 @@ +$(document).ready(function() { + var f = $.farbtastic('#color-picker'); + var colors = $('#settings_design_color input'); + + colors + .each(function () { f.linkTo(this); }) + .focus(function() { + f.linkTo(this); + }); +}); |