Fix Issue 11: WebKit browsers return initial instead of transparent

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@139 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-06-17 17:17:11 +00:00
parent f247e8f1b8
commit 766c9f50c0
1 changed files with 2 additions and 1 deletions

View File

@ -157,7 +157,8 @@ function svg_edit_setup() {
$('.palette_item').click(function(evt){
var id = (evt.shiftKey ? '#stroke_color' : '#fill_color');
color = $(this).css('background-color');
if (color == 'transparent') {
// Webkit-based browsers returned 'initial' here for no stroke
if (color == 'transparent' || color == 'initial') {
color = 'none';
$(id).css('background', 'url(\'images/none.png\')');
} else {