Possibly fixed issue 523 by adding paramurl parameter

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1524 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2010-04-15 15:50:55 +00:00
parent c5c57f5ad8
commit 8700f48695
1 changed files with 5 additions and 1 deletions

View File

@ -177,7 +177,8 @@
svgEditor.setConfig(urldata);
var src = urldata.source;
var qstr = $.param.querystring();
if(src) {
if(src.indexOf("data:") === 0) {
// plusses get replaced by spaces, so re-insert
@ -186,6 +187,9 @@
} else {
Editor.loadFromString(src);
}
} else if(qstr.indexOf('paramurl=') !== -1) {
// Get paramater URL (use full length of remaining location.href)
svgEditor.loadFromURL(qstr.substr(9));
} else if(urldata.url) {
svgEditor.loadFromURL(urldata.url);
}