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-75d572ba1dddmaster
parent
f247e8f1b8
commit
766c9f50c0
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue