From 708dad03b606a98e9b7dffd3582af1007c435b0f Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Sat, 2 May 2015 20:06:33 +0100 Subject: [PATCH] Part of MKWS-64. When a sort-criterion is selected, update the URL (though the wonder of assigning to window.location.href) rather then changing state directly. --- src/mkws-widget-main.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index cd08b2b..509939f 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -217,10 +217,7 @@ mkws.registerWidgetType('sort', function() { var that = this; this.node.change(function() { - that.team.set_sortOrder(that.node.val()); - if (that.team.submitted()) { - that.team.reShow(); - } + window.location.href = '#' + that.team.urlFragment({ sort: that.node.val() }); return false; }); }); -- 1.7.10.4