diff options
| author | Nigel Osborne <kiwi3685@me.com> | 2011-11-10 18:47:00 +0000 |
|---|---|---|
| committer | Nigel Osborne <kiwi3685@me.com> | 2011-11-10 18:47:00 +0000 |
| commit | 5561d8f6362bc726eb2dcf545d581792eb8f1d67 (patch) | |
| tree | fb2d713702b71e1eb3432ca9131221e44dacb225 /includes | |
| parent | e2e3f918261e085390931ff57d4d9f922e71b136 (diff) | |
| download | webtrees-5561d8f6362bc726eb2dcf545d581792eb8f1d67.tar.gz webtrees-5561d8f6362bc726eb2dcf545d581792eb8f1d67.tar.bz2 webtrees-5561d8f6362bc726eb2dcf545d581792eb8f1d67.zip | |
Add loading gif to block tables
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/functions/functions_print_lists.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/includes/functions/functions_print_lists.php b/includes/functions/functions_print_lists.php index ebaaf7cd28..0460726aa1 100644 --- a/includes/functions/functions_print_lists.php +++ b/includes/functions/functions_print_lists.php @@ -1487,9 +1487,11 @@ function print_changes_table($change_ids, $sort) { ] }); jQuery("#'.$table_id.'").css("visibility", "visible"); + jQuery(".loading-image").css("display", "none"); '); //-- table header + $return .= '<div class="loading-image"> </div>'; $return .= "<table id='" . $table_id . "' class='width100' style='visibility:hidden;'>"; $return .= "<thead><tr>"; $return .= "<th> </th>"; @@ -1597,7 +1599,8 @@ function print_events_table($startjd, $endjd, $events='BIRT MARR DEAT', $only_li ] }); - jQuery("#'.$table_id.'").css("visibility", "visible"); + jQuery("#'.$table_id.'").css("visibility", "visible"); + jQuery(".loading-image").css("display", "none"); '); // Did we have any output? Did we skip anything? @@ -1638,7 +1641,8 @@ function print_events_table($startjd, $endjd, $events='BIRT MARR DEAT', $only_li $output ++; if ($output==1) { - //-- First table row: start table headers, etc. first + //-- table body + $return .= '<div class="loading-image"> </div>'; $return .= '<table id="'.$table_id.'" class="width100" style="visibility:hidden;">'; $return .= '<thead><tr>'; $return .= '<th>'.WT_I18N::translate('Record').'</th>'; |
