diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-11-01 15:14:12 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-11-01 15:14:12 +0000 |
| commit | b85eddb8707bde0332d01a2dad7f5fa789cfc975 (patch) | |
| tree | 79cadfd9d25832a74b4e39fbd8c3b9a6eb17b8fe | |
| parent | 8aef4e72a809c6646fc68986c8aff2096cdf1bd3 (diff) | |
| download | webtrees-b85eddb8707bde0332d01a2dad7f5fa789cfc975.tar.gz webtrees-b85eddb8707bde0332d01a2dad7f5fa789cfc975.tar.bz2 webtrees-b85eddb8707bde0332d01a2dad7f5fa789cfc975.zip | |
Fix: sort-by-given names not working on family list
| -rw-r--r-- | includes/functions/functions_print_lists.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/functions/functions_print_lists.php b/includes/functions/functions_print_lists.php index e55244d277..88752fa2ce 100644 --- a/includes/functions/functions_print_lists.php +++ b/includes/functions/functions_print_lists.php @@ -525,9 +525,6 @@ function print_fam_table($datalist, $legend='', $option='') { "sPaginationType": "full_numbers" }); - oTable<?php echo $table_id; ?>.fnSortListener('#GIVEN_SORT_M_<?php echo $table_id; ?>',1); - oTable<?php echo $table_id; ?>.fnSortListener('#GIVEN_SORT_F_<?php echo $table_id; ?>',5); - jQuery("div.filtersH_<?php echo $table_id; ?>").html('<?php echo addcslashes( '<button type="button" id="DEAT_N_'.$table_id.'" class="ui-state-default DEAT_N" title="'.WT_I18N::translate('Show people who are alive or couples where both partners are alive.').'">'.WT_I18N::translate('Both alive ').'</button>'. '<button type="button" id="DEAT_W_'.$table_id.'" class="ui-state-default DEAT_W" title="'.WT_I18N::translate('Show couples where only the female partner is deceased.').'">'.WT_I18N::translate('Widower').'</button>'. @@ -550,6 +547,9 @@ function print_fam_table($datalist, $legend='', $option='') { "'"); ?>'); + oTable<?php echo $table_id; ?>.fnSortListener('#GIVEN_SORT_M_<?php echo $table_id; ?>',1); + oTable<?php echo $table_id; ?>.fnSortListener('#GIVEN_SORT_F_<?php echo $table_id; ?>',5); + /* Add event listeners for filtering inputs */ jQuery('#DEAT_N_<?php echo $table_id; ?>').click( function() { oTable<?php echo $table_id; ?>.fnFilter( 'N', 14 );}); jQuery('#DEAT_W_<?php echo $table_id; ?>').click( function() { oTable<?php echo $table_id; ?>.fnFilter( 'W', 14 );}); |
