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-75d572ba1ddd
master
Alexis Deveria 2009-08-25 18:22:43 +00:00
parent baf9f75982
commit 6bd6d0746e
2 changed files with 4 additions and 4 deletions

View 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() {
if(!window.Components) return;
@ -27,13 +27,13 @@ $(function() {
inputStream.init(file, 0x01, 00004, null);
var sInputStream = Components.classes["@mozilla.org/scriptableinputstream;1"].createInstance(Components.interfaces.nsIScriptableInputStream);
sInputStream.init(inputStream);
canvas.setSvgString(sInputStream.
svgCanvas.setSvgString(sInputStream.
read(sInputStream.available()));
} catch(e) {
console.log("Exception while attempting to load" + e);
}
},
'save':function(svg) {
'save':function(svg, str) {
try {
var file = moz_file_picker(false);
if(!file)

View 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() {
if(window.opera && window.opera.io && window.opera.io.filesystem) {
svgCanvas.setCustomHandlers({