Some SVG-edit tweaks

Remove the XML prolog.
Fix focus on save.
This commit is contained in:
Jacques Distler 2010-02-05 22:55:54 -06:00
parent c3ed5b461b
commit de3008d3e4
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,4 @@
/*
/*
* svgcanvas.js
*
* Licensed under the Apache License, Version 2
@ -5223,9 +5223,8 @@ function BatchCommand(text) {
if(opts) $.extend(save_options, opts);
save_options.apply = true;
var str = "<?xml version=\"1.0\" standalone=\"no\"?>\n";
// no need for doctype, see http://jwatt.org/svg/authoring/#doctype-declaration
str += svgCanvasToString();
var str = svgCanvasToString();
call("saved", str);
};