Applied patch by daniel.glazman for issue 688

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1744 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2010-09-22 19:09:21 +00:00
parent 5fa7df9835
commit 4a592de0da

View File

@@ -173,6 +173,20 @@
}
Editor.init = function() {
// For external openers
(function() {
// let the opener know SVG Edit is ready
var w = window.opener;
if (w) {
try {
var svgEditorReadyEvent = w.document.createEvent("Event");
svgEditorReadyEvent.initEvent("svgEditorReady", true, true);
w.document.documentElement.dispatchEvent(svgEditorReadyEvent);
}
catch(e) {}
}
})();
(function() {
// Load config/data from URL if given
var urldata = $.deparam.querystring(true);