-}
-mkws.registerWidgetType('Navi', promoteToNavi);
-
-
-function promoteToSort() {
- // It seems this and the Perpage widget doen't need to
- // subscribe to anything, since they produce events rather
- // than consuming them.
- $(this.node).change(function () {
- this.team.set_sortOrder($(node).val());
- if (this.team.submitted()) {
- this.team.resetPage();
- this.team.reShow();
+});
+
+
+// It seems this and the Perpage widget doen't need to subscribe to
+// anything, since they produce events rather than consuming them.
+//
+mkws.registerWidgetType('Sort', function() {
+ var that = this;
+
+ $(this.node).change(function() {
+ that.team.set_sortOrder($(that.node).val());
+ if (that.team.submitted()) {
+ that.team.resetPage();
+ that.team.reShow();