From 3f1f54d6a81f02d6748858aeace63897463a399e Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Sat, 2 May 2015 20:13:56 +0100 Subject: [PATCH] Part of MKWS-64. When a page-size is selected, update the URL 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 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; }); }); -- 1.7.10.4