Removed some log calls and changed image lib open option name

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1737 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2010-09-21 12:48:44 +00:00
parent 5fad4fdfe0
commit a0914b8a01
2 changed files with 1 additions and 3 deletions

View File

@ -293,7 +293,7 @@ svgEditor.addExtension("imagelib", function() {
'margin-right': 5
});
var type = $('<select><option value=s>Import single</option><option value=m>Import multiple</option><option value=o>Open for editing</option></select>').appendTo(leftBlock).change(function() {
var type = $('<select><option value=s>Import single</option><option value=m>Import multiple</option><option value=o>Open as new document</option></select>').appendTo(leftBlock).change(function() {
mode = $(this).val();
switch (mode) {
case 's':

View File

@ -90,7 +90,6 @@ svgEditor.addExtension("shapes", function() {
if(!lib) {
$('#shape_buttons').html('Loading...');
console.log('extensions/shapelib/' + cat_id + '.json');
$.getJSON('extensions/shapelib/' + cat_id + '.json', function(result, textStatus) {
cur_lib = library[cat_id] = {
data: result.data,
@ -114,7 +113,6 @@ svgEditor.addExtension("shapes", function() {
var off = size * .05;
var vb = [-off, -off, size + off*2, size + off*2].join(' ');
var stroke = fill ? 0: (size/30);
console.log(vb);
var shape_icon = new DOMParser().parseFromString(
'<svg xmlns="http://www.w3.org/2000/svg"><svg viewBox="' + vb + '"><path fill="'+(fill?'#333':'none')+'" stroke="#000000" stroke-width="' + stroke + '" /><\/svg><\/svg>',