Set title for picker to specify stroke/fill

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@344 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-07-22 22:52:04 +00:00
parent 1c9993d438
commit 75f1fe1adf
1 changed files with 2 additions and 1 deletions

View File

@ -580,8 +580,9 @@ function svg_edit_setup() {
} }
} }
var pos = elem.position(); var pos = elem.position();
picker = 'stroke'; var picker = elem.attr('id') == 'stroke_color' ? 'stroke' : 'fill';
$('#color_picker').css({'left': pos.left - 140, 'bottom': 104 - pos.top}).jPicker({ $('#color_picker').css({'left': pos.left - 140, 'bottom': 104 - pos.top}).jPicker({
window: { title: "Choose the " + picker + " color and opacity"},
images: { clientPath: "jpicker/images/" }, images: { clientPath: "jpicker/images/" },
color: { active: color, alphaSupport: true } color: { active: color, alphaSupport: true }
}, function(color){ }, function(color){