From 5b641cb5c0ad553b6f84af7915e7f2eba9afdb6d Mon Sep 17 00:00:00 2001 From: Adrian Jones Date: Wed, 29 May 2013 01:39:37 +0000 Subject: [PATCH] Two more loading messages for Import and Open of images. git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2513 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index ce7254d0..c3953f6c 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -4224,6 +4224,7 @@ // get the text contents of the file and send it to the canvas if (window.FileReader) { var importImage = function(e) { + $.process_cancel(uiStrings.notification.loadingImage); e.stopPropagation(); e.preventDefault(); $('#workarea').removeAttr('style'); @@ -4314,6 +4315,7 @@ if (!ok) return; svgCanvas.clear(); if (f.files.length==1) { + $.process_cancel(uiStrings.notification.loadingImage); var reader = new FileReader(); reader.onloadend = function(e) { loadSvgString(e.target.result); @@ -4396,6 +4398,7 @@ updateRulers(cnvs, zoom); workarea.scroll(); } + $('#dialog_box').hide(); }; // Make [1,2,5] array