diff options
author | Florian Hülsmann <fh@cbix.de> | 2012-03-26 05:57:36 +0400 |
---|---|---|
committer | Florian Hülsmann <fh@cbix.de> | 2012-03-26 05:57:36 +0400 |
commit | 3ea42a9e68c6e477e4ec6f8d7acce35c59927582 (patch) | |
tree | e901eee6355283f4f312ae9b1667faae212abf7c /files_svgedit | |
parent | 4a18d1a86d87dba3ae1eccd7284023c355d442d9 (diff) |
loading error message
Diffstat (limited to 'files_svgedit')
-rw-r--r-- | files_svgedit/js/ocsvgEditor.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/files_svgedit/js/ocsvgEditor.js b/files_svgedit/js/ocsvgEditor.js index 293a29782..d5de42f34 100644 --- a/files_svgedit/js/ocsvgEditor.js +++ b/files_svgedit/js/ocsvgEditor.js @@ -79,7 +79,11 @@ $(document).ready(function() { ocsvg.frameDoc.find('#main_button').hide().next().css('left', 0).css('padding-left', 2).css('padding-top', 2); // fix broken color select field ocsvg.frameDoc.find('#fill_color,#stroke_color').find('svg').css('height', '100%'); - svgCanvas.setSvgString(ocsvg.currentFile.filecontents); + svgCanvas.setSvgString(ocsvg.currentFile.filecontents)(function(data, error) { + if(error) { + alert("Could not load file!\n\n" + error); + } + }); }); }); /* |