Fixed comment in FF/Opera hander files, fixed bugs for Firefox extension
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@469 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
baf9f75982
commit
6bd6d0746e
|
@ -1,4 +1,4 @@
|
||||||
// Note: This JavaScript file must be included as the last script on the main HTML editor page to override the open/close handlers
|
// Note: This JavaScript file must be included as the last script on the main HTML editor page to override the open/save handlers
|
||||||
$(function() {
|
$(function() {
|
||||||
if(!window.Components) return;
|
if(!window.Components) return;
|
||||||
|
|
||||||
|
@ -27,13 +27,13 @@ $(function() {
|
||||||
inputStream.init(file, 0x01, 00004, null);
|
inputStream.init(file, 0x01, 00004, null);
|
||||||
var sInputStream = Components.classes["@mozilla.org/scriptableinputstream;1"].createInstance(Components.interfaces.nsIScriptableInputStream);
|
var sInputStream = Components.classes["@mozilla.org/scriptableinputstream;1"].createInstance(Components.interfaces.nsIScriptableInputStream);
|
||||||
sInputStream.init(inputStream);
|
sInputStream.init(inputStream);
|
||||||
canvas.setSvgString(sInputStream.
|
svgCanvas.setSvgString(sInputStream.
|
||||||
read(sInputStream.available()));
|
read(sInputStream.available()));
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.log("Exception while attempting to load" + e);
|
console.log("Exception while attempting to load" + e);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'save':function(svg) {
|
'save':function(svg, str) {
|
||||||
try {
|
try {
|
||||||
var file = moz_file_picker(false);
|
var file = moz_file_picker(false);
|
||||||
if(!file)
|
if(!file)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Note: This JavaScript file must be included as the last script on the main HTML editor page to override the open/close handlers
|
// Note: This JavaScript file must be included as the last script on the main HTML editor page to override the open/save handlers
|
||||||
$(function() {
|
$(function() {
|
||||||
if(window.opera && window.opera.io && window.opera.io.filesystem) {
|
if(window.opera && window.opera.io && window.opera.io.filesystem) {
|
||||||
svgCanvas.setCustomHandlers({
|
svgCanvas.setCustomHandlers({
|
||||||
|
|
Loading…
Reference in New Issue