From: Mike Taylor Date: Sat, 2 May 2015 19:13:56 +0000 (+0100) Subject: Part of MKWS-64. X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=3f1f54d6a81f02d6748858aeace63897463a399e;hp=6030546339d517a88eac59a8d4fe920359a7f1d1;p=mkws-moved-to-github.git Part of MKWS-64. When a page-size is selected, update the URL rather then changing state directly. --- diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 509939f..733dfb2 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -227,10 +227,7 @@ mkws.registerWidgetType('per-page', function() { var that = this; this.node.change(function() { - that.team.set_perpage(that.node.val()); - if (that.team.submitted()) { - that.team.reShow(); - } + window.location.href = '#' + that.team.urlFragment({ size: that.node.val() }); return false; }); });