1 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 * for main custom color
6 $(document).ready(function() {
7 $('#li_custom_color').show();
8 // Choosing another id does not work!
9 $("input[type='submit'][name='custom_color_choose']").ColorPicker({
11 onShow: function (colpkr) {
12 $(colpkr).fadeIn(500);
15 onHide: function (colpkr) {
16 $(colpkr).fadeOut(500);
19 onChange: function(hsb, hex, rgb) {
20 top.frame_content.document.body.style.backgroundColor = '#' + hex;
21 top.frame_navigation.document.body.style.backgroundColor = '#' + hex;
23 onSubmit: function(hsb, hex, rgb) {
24 $('#custom_color').val('#' + hex);
25 $('#colorform').submit();