From 8700f486950cfe9d14d382044cc41f936b20adb1 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Thu, 15 Apr 2010 15:50:55 +0000 Subject: [PATCH] Possibly fixed issue 523 by adding paramurl parameter git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1524 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index ff08898e..894b290d 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -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); }