A little more work on the closepath extension (still doesn't show SVG icons yet)
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1412 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -423,9 +423,9 @@ function svg_edit_setup() {
|
||||
|
||||
var panel = $('#' + tool.panel);
|
||||
|
||||
if(!panel.length) {
|
||||
// create the panel if it doesn't exist
|
||||
if(!panel.length)
|
||||
panel = $('<div>', {id: tool.panel}).appendTo("#tools_top");
|
||||
}
|
||||
|
||||
// TODO: Allow support for other types, or adding to existing tool
|
||||
switch (tool.type) {
|
||||
@@ -487,7 +487,6 @@ function svg_edit_setup() {
|
||||
var fallback_obj = {},
|
||||
placement_obj = {},
|
||||
svgicons = ext.svgicons;
|
||||
|
||||
var holders = {};
|
||||
|
||||
|
||||
@@ -520,6 +519,9 @@ function svg_edit_setup() {
|
||||
case 'context':
|
||||
cls = 'tool_button';
|
||||
parent = "#" + btn.panel;
|
||||
// create the panel if it doesn't exist
|
||||
if(!$(parent).length)
|
||||
$('<div>', {id: btn.panel}).appendTo("#tools_top");
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -527,7 +529,6 @@ function svg_edit_setup() {
|
||||
.attr("id", id)
|
||||
.attr("title", btn.title)
|
||||
.addClass(cls);
|
||||
|
||||
if(!btn.includeWith) {
|
||||
button.appendTo(parent);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user