Merge the two consecutive if(!query) clauses.
authorMike Taylor <mike@indexdata.com>
Tue, 27 May 2014 15:53:29 +0000 (16:53 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 27 May 2014 15:53:29 +0000 (16:53 +0100)
src/mkws-widget.js

index 70bd0d0..3205990 100644 (file)
@@ -132,9 +132,7 @@ widget.autosearch = function(widget) {
         alert("This page has a MasterKey widget that needs a query specified by the '" + name + "' variable");
       }
     }
-  }
 
-  if (query) {
     var sortOrder = widget.config.sort;
     var maxrecs = widget.config.maxrecs;
     var perpage = widget.config.perpage;