From 61295b83e6459b8a6bd97a92e09aee515bd2e5e3 Mon Sep 17 00:00:00 2001 From: Adrian Jones Date: Tue, 28 May 2013 22:29:14 +0000 Subject: [PATCH] Simplified the loading image from URL message to make use of existing dialog box types and text strings git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2512 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 09ae72dd..ce7254d0 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -4680,9 +4680,8 @@ 'dataType': 'text', cache: !!cache, beforeSend:function(){ - $('#dialog_content').html('

Loading image, please wait

'); - $('#dialog_box').show(); - }, + $.process_cancel(uiStrings.notification.loadingImage); + }, success: function(str) { loadSvgString(str, cb); }, @@ -4693,9 +4692,9 @@ $.alert(uiStrings.notification.URLloadFail + ': \n'+err+'', cb); } }, - complete:function(){ - $('#dialog_box').hide(); - } + complete:function(){ + $('#dialog_box').hide(); + } }); }); };