No need to invoke resetPage() before reShow(), which will do it for us.
authorMike Taylor <mike@indexdata.com>
Wed, 9 Apr 2014 16:16:51 +0000 (17:16 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 9 Apr 2014 16:16:51 +0000 (17:16 +0100)
src/mkws-widgets.js

index 8b43400..6370952 100644 (file)
@@ -288,7 +288,6 @@ mkws.registerWidgetType('Sort', function() {
     $(this.node).change(function() {
        that.team.set_sortOrder($(that.node).val());
        if (that.team.submitted()) {
     $(this.node).change(function() {
        that.team.set_sortOrder($(that.node).val());
        if (that.team.submitted()) {
-           that.team.resetPage();
            that.team.reShow();
        }
        return false;
            that.team.reShow();
        }
        return false;
@@ -302,7 +301,6 @@ mkws.registerWidgetType('Perpage', function() {
     $(this.node).change(function() {
        that.team.set_perpage($(that.node).val());
        if (that.team.submitted()) {
     $(this.node).change(function() {
        that.team.set_perpage($(that.node).val());
        if (that.team.submitted()) {
-           that.team.resetPage();
            that.team.reShow();
        }
        return false;
            that.team.reShow();
        }
        return false;