forgot one line

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@37 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Pavol Rusnak 2009-06-05 14:05:28 +00:00
parent f2d90fe0d3
commit 979949da7a
1 changed files with 1 additions and 0 deletions

View File

@ -131,6 +131,7 @@ $(document).ready(function(){
var oldbg = elem.css('background'); var oldbg = elem.css('background');
var color = elem.css('background-color'); var color = elem.css('background-color');
if (color == 'transparent') { if (color == 'transparent') {
color = new $.jPicker.Color({ hex: 'ffffff' });
} else { } else {
if (color.length == 7 && color[0] == '#') { // #hheexx notation if (color.length == 7 && color[0] == '#') { // #hheexx notation
color = new $.jPicker.Color( { hex: color.substring(1,7) } ); color = new $.jPicker.Color( { hex: color.substring(1,7) } );