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',
cache: !!cache,
beforeSend:function(){
$('#dialog_content').html('<p>Loading image, please wait</p>');
$('#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();
}
});
});
};