Fixed issue 678 - opensave extension broken
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1731 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
99fb199663
commit
b1268c527d
|
@ -227,9 +227,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load extensions
|
// Load extensions
|
||||||
// Bit of a hack to run extensions in local Opera
|
// Bit of a hack to run extensions in local Opera/IE9
|
||||||
if(window.opera && document.location.protocol === 'file:') {
|
if(document.location.protocol === 'file:') {
|
||||||
setTimeout(extFunc, 1000);
|
setTimeout(extFunc, 100);
|
||||||
} else {
|
} else {
|
||||||
extFunc();
|
extFunc();
|
||||||
}
|
}
|
||||||
|
@ -4144,8 +4144,11 @@
|
||||||
|
|
||||||
Editor.addExtension = function() {
|
Editor.addExtension = function() {
|
||||||
var args = arguments;
|
var args = arguments;
|
||||||
Editor.ready(function() {
|
|
||||||
svgCanvas.addExtension.apply(this, args);
|
// Note that we don't want this on Editor.ready since some extensions
|
||||||
|
// may want to run before then (like server_opensave).
|
||||||
|
$(function() {
|
||||||
|
if(svgCanvas) svgCanvas.addExtension.apply(this, args);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue