Fix broken JS code and add better Unicode support, JSLint, add txt ext. to README

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2654 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Brett Zamir
2014-01-31 11:27:58 +00:00
parent 51ed2f6106
commit 84fb451262
2 changed files with 4 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
this.saveHandler = function(svg) {
$.post("svg-editor-save.php", { svg_data: escape(svg) } );
});
/*globals $*/
this.saveHandler = function(svg) {'use strict';
$.post("svg-editor-save.php", {svg_data: encodeURIComponent(svg)});
};