From d3f14f2d6ea00a786cf741eb0d9ab7430fc8cead Mon Sep 17 00:00:00 2001 From: Jacob Brookover Date: Tue, 27 Jul 2010 20:25:50 +0000 Subject: [PATCH] -Allow users to specify alternate CSS and path information for jGraduate/jPicker via setConfig git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1647 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 92067a59..ad75d87d 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -45,9 +45,11 @@ imgPath: 'images/', langPath: 'locale/', extPath: 'extensions/', + jGraduatePath: 'jgraduate/images/', extensions: ['ext-markers.js','ext-connector.js', 'ext-eyedropper.js', 'ext-shapes.js', 'ext-imagelib.js'], initTool: 'select', - wireframe: false + wireframe: false, + colorPickerCSS: null }, uiStrings = Editor.uiStrings = { "invalidAttrValGiven":"Invalid value given", @@ -2938,12 +2940,12 @@ var pos = elem.position(); $("#color_picker") .draggable({cancel:'.jPicker_table,.jGraduate_lgPick,.jGraduate_rgPick'}) - .css({'left': pos.left, 'bottom': 50 - pos.top}) + .css(curConfig.colorPickerCSS || {'left': pos.left, 'bottom': 50 - pos.top}) .jGraduate( { paint: paint, window: { pickerTitle: title }, - images: { clientPath: "jgraduate/images/" } + images: { clientPath: curConfig.jGraduatePath } }, function(p) { paint = new $.jGraduate.Paint(p);