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-75d572ba1dddmaster
parent
fc5673ea4d
commit
f924e34fba
|
@ -4679,6 +4679,10 @@
|
|||
'url': url,
|
||||
'dataType': 'text',
|
||||
cache: !!cache,
|
||||
beforeSend:function(){
|
||||
$('#dialog_content').html('<p>Loading image, please wait</p>');
|
||||
$('#dialog_box').show();
|
||||
},
|
||||
success: function(str) {
|
||||
loadSvgString(str, cb);
|
||||
},
|
||||
|
@ -4688,6 +4692,9 @@
|
|||
} else {
|
||||
$.alert(uiStrings.notification.URLloadFail + ': \n'+err+'', cb);
|
||||
}
|
||||
},
|
||||
complete:function(){
|
||||
$('#dialog_box').hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue