From: Mike Taylor Date: Sat, 2 May 2015 19:07:07 +0000 (+0100) Subject: Handle changes in "sort" state. X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=6030546339d517a88eac59a8d4fe920359a7f1d1;p=mkws-moved-to-github.git Handle changes in "sort" state. --- diff --git a/src/mkws-team.js b/src/mkws-team.js index ad6bdd3..00e1f24 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -124,6 +124,11 @@ mkws.makeTeam = function($, teamName) { " -> '" + val + "'"); if (key === 'page') { that.showPage(parseInt(val)); + } else if (key === 'sort') { + that.set_sortOrder(val); + if (that.submitted()) { + that.reShow(); + } } } }