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
master
Adrian Jones 2013-05-08 17:29:18 +00:00
parent fc5673ea4d
commit f924e34fba
1 changed files with 8 additions and 1 deletions

View File

@ -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,7 +4692,10 @@
} else {
$.alert(uiStrings.notification.URLloadFail + ': \n'+err+'', cb);
}
}
},
complete:function(){
$('#dialog_box').hide();
}
});
});
};