No "sort"/"perpage" events in the pub/sub queue.
authorMike Taylor <mike@indexdata.com>
Fri, 21 Mar 2014 17:05:50 +0000 (17:05 +0000)
committerMike Taylor <mike@indexdata.com>
Fri, 21 Mar 2014 17:05:50 +0000 (17:05 +0000)
tools/htdocs/mkws.js

index c06cde1..193a663 100644 (file)
@@ -399,8 +399,10 @@ function widget($, team, type, node) {
 
 
     function promoteSort() {
+       // It seems this and the Perpage widget doen't need to
+       // subscribe to anything, since they produce events rather
+       // than consuming them.
        $(node).change(onSortChange);
-       team.queue("navi").subscribe(function() {})
 
        function onSortChange()
        {
@@ -415,7 +417,6 @@ function widget($, team, type, node) {
 
     function promotePerpage() {
        $(node).change(onPerpageChange);
-       team.queue("navi").subscribe(function() {})
 
        function onPerpageChange()
        {