Provide feedback while loading asynchronous tabs.

SVN:trunk[3245]
This commit is contained in:
Denis Flaven
2014-07-04 13:18:47 +00:00
parent d83edb803b
commit 922049e8f2

View File

@@ -216,6 +216,7 @@ EOF;
$('.resizable', ui.panel).resizable(); // Make resizable everything that claims to be resizable !
},
beforeLoad: function( event, ui ) {
ui.panel.html('<div><img src="../images/indicator.gif"></div>');
if ( ui.tab.data('loaded') && (ui.tab.attr('data-cache') == 'true')) {
event.preventDefault();
return;