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