From 75f1fe1adf78abe761230d32e0400356971f5e47 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Wed, 22 Jul 2009 22:52:04 +0000 Subject: [PATCH] Set title for picker to specify stroke/fill git-svn-id: http://svg-edit.googlecode.com/svn/trunk@344 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index b4ebc5da..f1dcffee 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -580,8 +580,9 @@ function svg_edit_setup() { } } 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({ + window: { title: "Choose the " + picker + " color and opacity"}, images: { clientPath: "jpicker/images/" }, color: { active: color, alphaSupport: true } }, function(color){