Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #34 from MWFIAE/patch-5
Browse files Browse the repository at this point in the history
Fix sorting in memberlist
  • Loading branch information
mys committed Feb 19, 2018
2 parents c603c2a + 78b8961 commit a55d427
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion styles/templates/game/page.alliance.admin.members.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,25 @@
{block name="script" append}
<script src="scripts/base/jquery.tablesorter.js"></script>
<script>$(function() {
$.tablesorter.addParser({
id: 'nopoint',
is: function(s) {
// return false so this parser is not auto detected
return false;
},
format: function(s) {
// format your data for normalization
var lNumber = parseFloat(s.replace('.',''));
return lNumber;
},
// set type, either numeric or text
type: 'numeric'
});
$("#memberList").tablesorter({
headers: {
0: { sorter: false } ,
3: { sorter: false } ,
4: { sorter: "nopoint"} ,
9: { sorter: false }
},
debug: false
Expand All @@ -60,4 +75,4 @@
});
});
</script>
{/block}
{/block}

0 comments on commit a55d427

Please sign in to comment.