From: Mike Taylor Date: Sat, 2 May 2015 19:06:33 +0000 (+0100) Subject: Part of MKWS-64. X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=708dad03b606a98e9b7dffd3582af1007c435b0f;p=mkws-moved-to-github.git 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. --- 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; }); });