diff options
| author | Łukasz Wilenski <wooc@gazeta.pl> | 2011-11-18 16:40:55 +0000 |
|---|---|---|
| committer | Łukasz Wilenski <wooc@gazeta.pl> | 2011-11-18 16:40:55 +0000 |
| commit | eb90eae4b38819922ed68d6d0b82d6ee405a9156 (patch) | |
| tree | b23202a89124d887d888ea1a78b2f821a4bb80ca /includes | |
| parent | 2c18fa085985563447a38bc21a7ba61a3433cd0a (diff) | |
| download | webtrees-eb90eae4b38819922ed68d6d0b82d6ee405a9156.tar.gz webtrees-eb90eae4b38819922ed68d6d0b82d6ee405a9156.tar.bz2 webtrees-eb90eae4b38819922ed68d6d0b82d6ee405a9156.zip | |
add locale sorting for more tables
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/functions/functions_print_lists.php | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/includes/functions/functions_print_lists.php b/includes/functions/functions_print_lists.php index 94c0b5da4e..84c14af1a3 100644 --- a/includes/functions/functions_print_lists.php +++ b/includes/functions/functions_print_lists.php @@ -1633,6 +1633,8 @@ function print_changes_table($change_ids, $sort) { $controller ->addExternalJavaScript(WT_STATIC_URL.'js/jquery/jquery.dataTables.min.js') ->addInlineJavaScript(' + jQuery.fn.dataTableExt.oSort["unicode-asc" ]=function(a,b) {return a.replace(/<[^<]*>/, "").localeCompare(b.replace(/<[^<]*>/, ""))}; + jQuery.fn.dataTableExt.oSort["unicode-desc"]=function(a,b) {return b.replace(/<[^<]*>/, "").localeCompare(a.replace(/<[^<]*>/, ""))}; jQuery("#'.$table_id.'").dataTable({ "sDom": \'t\', "bPaginate": false, @@ -1646,12 +1648,12 @@ function print_changes_table($change_ids, $sort) { "bJQueryUI": true, "aaSorting": ['.$aaSorting.'], "aoColumns": [ - /* 0-Type */ { "bSortable" : false, "sClass": "center" }, - /* 1-Record */ { "iDataSort" : 5 }, - /* 2-Change */ { "iDataSort" : 4 }, - /* 3=By */ null, - /* 4-DATE */ { "bVisible" : false }, - /* 5-SORTNAME */{ "bVisible" : false } + /* 0-Type */ {"bSortable": false, "sClass": "center"}, + /* 1-Record */ {"iDataSort": 5}, + /* 2-Change */ {"iDataSort": 4}, + /* 3-By */ null, + /* 4-DATE */ {"bVisible": false}, + /* 5-SORTNAME */{"sType": "unicode", "bVisible": false} ] }); jQuery("#'.$table_id.'").css("visibility", "visible"); @@ -1707,7 +1709,7 @@ function print_changes_table($change_ids, $sort) { //-- Record name(s) $name = $record->getFullName(); $return .= '<td class="wrap">'; - $return .= '<a href="'. $record->getHtmlUrl() .'">'. $name . '</a>'; + $return .= '<a href="'. $record->getHtmlUrl() .'" class="name2">'. $name . '</a>'; if ($indi) { $addname = $record->getAddName(); if ($addname) { |
