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
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user