summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-11-22 09:34:56 +0000
committerfisharebest <fisharebest@gmail.com>2011-11-22 09:34:56 +0000
commitb5466ef5133cef3297f1b910cea08df26886e08b (patch)
tree7cb0a425564c22cf0bbc2896519545c598092427 /includes
parentfea792b6bb14d0c9681a461db7718b010f5936a0 (diff)
downloadwebtrees-b5466ef5133cef3297f1b910cea08df26886e08b.tar.gz
webtrees-b5466ef5133cef3297f1b910cea08df26886e08b.tar.bz2
webtrees-b5466ef5133cef3297f1b910cea08df26886e08b.zip
Remove the code that hides changes/events/surname tables until after they have been processed by datatables. This fixes the problem of block content not showing, at the expense of a very brief "flash of unstyled content"
Diffstat (limited to 'includes')
-rw-r--r--includes/functions/functions_print_lists.php14
1 files changed, 2 insertions, 12 deletions
diff --git a/includes/functions/functions_print_lists.php b/includes/functions/functions_print_lists.php
index 3cc4dfb7cf..b50711b296 100644
--- a/includes/functions/functions_print_lists.php
+++ b/includes/functions/functions_print_lists.php
@@ -1368,8 +1368,6 @@ function format_surname_table($surnames, $script) {
/* 3 COUNT */ {bVisible:false}
],
});
- jQuery(".surname-list").css("visibility", "visible");
- jQuery(".loading-image").css("display", "none");
');
if ($script=='famlist.php') {
@@ -1446,7 +1444,6 @@ function format_surname_table($surnames, $script) {
}
return
- '<div class="loading-image">&nbsp;</div>'.
'<table class="surname-list">'.
'<thead>'.$thead.'</thead>'.
'<tbody>'.$tbody.'</tbody>'.
@@ -1656,13 +1653,10 @@ function print_changes_table($change_ids, $sort) {
/* 5-SORTNAME */{"sType": "unicode", "bVisible": false}
]
});
- jQuery("#'.$table_id.'").css("visibility", "visible");
- jQuery(".loading-image").css("display", "none");
');
//-- table header
- $return .= '<div class="loading-image">&nbsp;</div>';
- $return .= "<table id='" . $table_id . "' class='width100' style='visibility:hidden;'>";
+ $return .= "<table id='" . $table_id . "' class='width100'>";
$return .= "<thead><tr>";
$return .= "<th>&nbsp;</th>";
$return .= "<th>" . WT_I18N::translate('Record') . "</th>";
@@ -1759,9 +1753,6 @@ function print_events_table($startjd, $endjd, $events='BIRT MARR DEAT', $only_li
/* 5-Event */ { "sClass": "center" }
]
});
-
- jQuery("#'.$table_id.'").css("visibility", "visible");
- jQuery(".loading-image").css("display", "none");
');
// Did we have any output? Did we skip anything?
@@ -1803,8 +1794,7 @@ function print_events_table($startjd, $endjd, $events='BIRT MARR DEAT', $only_li
if ($output==1) {
//-- table body
- $return .= '<div class="loading-image">&nbsp;</div>';
- $return .= '<table id="'.$table_id.'" class="width100" style="visibility:hidden;">';
+ $return .= '<table id="'.$table_id.'" class="width100">';
$return .= '<thead><tr>';
$return .= '<th>'.WT_I18N::translate('Record').'</th>';
$return .= '<th>NAME</th>'; //hidden by datatables code