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
This commit is contained in:
Adrian Jones
2013-05-28 22:29:14 +00:00
parent f924e34fba
commit 61295b83e6

View File

@@ -4680,9 +4680,8 @@
'dataType': 'text', 'dataType': 'text',
cache: !!cache, cache: !!cache,
beforeSend:function(){ beforeSend:function(){
$('#dialog_content').html('<p>Loading image, please wait</p>'); $.process_cancel(uiStrings.notification.loadingImage);
$('#dialog_box').show(); },
},
success: function(str) { success: function(str) {
loadSvgString(str, cb); loadSvgString(str, cb);
}, },
@@ -4693,9 +4692,9 @@
$.alert(uiStrings.notification.URLloadFail + ': \n'+err+'', cb); $.alert(uiStrings.notification.URLloadFail + ': \n'+err+'', cb);
} }
}, },
complete:function(){ complete:function(){
$('#dialog_box').hide(); $('#dialog_box').hide();
} }
}); });
}); });
}; };