diff options
| author | Nigel Osborne <kiwi3685@me.com> | 2013-04-18 05:03:38 +0000 |
|---|---|---|
| committer | Nigel Osborne <kiwi3685@me.com> | 2013-04-18 05:03:38 +0000 |
| commit | ae4e723405abdc7efc68e538f18c9032e5885113 (patch) | |
| tree | d0c3f8b924341e30146b33c0f9c8fb0fcf6cc432 /statistics.php | |
| parent | 0a95aa8c921f09d2db82829ec9e0272718a96fe3 (diff) | |
| download | webtrees-ae4e723405abdc7efc68e538f18c9032e5885113.tar.gz webtrees-ae4e723405abdc7efc68e538f18c9032e5885113.tar.bz2 webtrees-ae4e723405abdc7efc68e538f18c9032e5885113.zip | |
Bug #1155069 jQUery-UI "spinner" option no longer available
Diffstat (limited to 'statistics.php')
| -rw-r--r-- | statistics.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/statistics.php b/statistics.php index d8f957e1e1..2fd360b32d 100644 --- a/statistics.php +++ b/statistics.php @@ -37,8 +37,14 @@ if (!$ajax) { $controller=new WT_Controller_Page(); $controller->setPageTitle(WT_I18N::translate('Statistics')) ->addExternalJavascript(WT_STATIC_URL.'js/autocomplete.js') - ->addInlineJavascript('jQuery("#stats-tabs").tabs({ spinner: "<i class=\"icon-loading-small\"></i>", cache: true });') - ->addInlineJavascript('jQuery("#stats-tabs").css("visibility", "visible");') + ->addInlineJavascript(' + jQuery("#stats-tabs").css("visibility", "visible"); + jQuery("#stats-tabs").tabs({ + beforeLoad: function() {jQuery("#loading-indicator").addClass("loading-image");}, + load: function() {jQuery("#loading-indicator").removeClass("loading-image");}, + cache: true + }); + ') ->pageHeader(); echo '<div id="stats-details"><h2>', WT_I18N::translate('Statistics'), '</h2>', @@ -53,6 +59,7 @@ if (!$ajax) { '<li><a href="statistics.php?ged=', WT_GEDURL, '&ajax=1&tab=3">', '<span id="stats-own">', WT_I18N::translate('Own charts'), '</span></a></li>', '</ul>', + '<div id="loading-indicator" style="margin:auto;width:100%;"></div>', '</div>', // stats-tabs '</div>', // stats-details '<br><br>'; @@ -60,7 +67,8 @@ if (!$ajax) { $controller=new WT_Controller_Ajax(); $controller ->pageHeader() - ->addExternalJavascript(WT_STATIC_URL.'js/autocomplete.js'); + ->addExternalJavascript(WT_STATIC_URL.'js/autocomplete.js') + ->addInlineJavascript('jQuery("#loading-indicator").removeClass("loading-image");'); $stats = new WT_Stats($GEDCOM); if ($tab==0) { echo '<fieldset> |
