Files
phpmyadmin/js/main_custom_color.js
Michal Čihař d17fba309c Fix permissions.
Most files were made executable somewhere in ninadsp tree, reverting
this.
2010-08-30 09:53:37 +02:00

29 lines
869 B
JavaScript

/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* for main custom color
*
*/
$(document).ready(function() {
$('#li_custom_color').show();
// Choosing another id does not work!
$("input[type='submit'][name='custom_color_choose']").ColorPicker({
color: '#0000ff',
onShow: function (colpkr) {
$(colpkr).fadeIn(500);
return false;
},
onHide: function (colpkr) {
$(colpkr).fadeOut(500);
return false;
},
onChange: function(hsb, hex, rgb) {
top.frame_content.document.body.style.backgroundColor = '#' + hex;
top.frame_navigation.document.body.style.backgroundColor = '#' + hex;
},
onSubmit: function(hsb, hex, rgb) {
$('#custom_color').val('#' + hex);
$('#colorform').submit();
}
});
});