Handle changes in "sort" state.
authorMike Taylor <mike@indexdata.com>
Sat, 2 May 2015 19:07:07 +0000 (20:07 +0100)
committerMike Taylor <mike@indexdata.com>
Sat, 2 May 2015 19:07:07 +0000 (20:07 +0100)
src/mkws-team.js

index ad6bdd3..00e1f24 100644 (file)
@@ -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();
+          }
         }
       }
     }