-function promoteToSort() {
- $(this.node).change(function () {
- this.team.set_sortOrder($(node).val());
- if (this.team.submitted()) {
- this.team.resetPage();
- this.team.reShow();
+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();