Drizzle-compatible Status tab
[phpmyadmin-regexreplace.git] / js / main_custom_color.js
blob557fb3fede30c591396027fc584b53523d643658
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 $("input[type='submit'][name='custom_color_choose']").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 });