summaryrefslogtreecommitdiff
path: root/js/farbtastic/farbtastic.go.js
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-04-13 05:39:23 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-04-13 05:39:23 +0000
commited3d68435f042ff6bc212022058310255db0e1bd (patch)
tree3fd48baf75ea64353af82ab86f7b76b53d24e11f /js/farbtastic/farbtastic.go.js
parent4a8c23fe32cf0f3c556dfa062dcffedd77fd5857 (diff)
Using farbtastic jQuery plugin to select design colours.
Diffstat (limited to 'js/farbtastic/farbtastic.go.js')
-rw-r--r--js/farbtastic/farbtastic.go.js10
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);
+ });
+});