From f924e34fbafedb1148f75ca71f4ae0d7301ea000 Mon Sep 17 00:00:00 2001 From: Adrian Jones Date: Wed, 8 May 2013 17:29:18 +0000 Subject: [PATCH] Add loading message when loading image from URL. Complex SVGs take a long time to render! git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2510 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 0c4672c5..09ae72dd 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -4679,6 +4679,10 @@ 'url': url, 'dataType': 'text', cache: !!cache, + beforeSend:function(){ + $('#dialog_content').html('

Loading image, please wait

'); + $('#dialog_box').show(); + }, success: function(str) { loadSvgString(str, cb); }, @@ -4688,7 +4692,10 @@ } else { $.alert(uiStrings.notification.URLloadFail + ': \n'+err+'', cb); } - } + }, + complete:function(){ + $('#dialog_box').hide(); + } }); }); };