Merge remote branch 'origin/master'
[phpmyadmin/dkf.git] / js / main_custom_color.js
blobeacc5b7938b8a5b60cfb605aeb538048e91614d0
1 /* vim: set expandtab sw=4 ts=4 sts=4: */
2 /**
3 * for main custom color
5 */
6 $(document).ready(function() {
7 $('#li_custom_color').show();
8 // Choosing another id does not work!
9 $('#colorSelector').ColorPicker({
10 color: '#0000ff',
11 onShow: function (colpkr) {
12 $(colpkr).fadeIn(500);
13 return false;
15 onHide: function (colpkr) {
16 $(colpkr).fadeOut(500);
17 return false;
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();
27 });
28 });