From 65754d09ba8dd4b02784610ec66bb593613620a9 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 27 May 2014 16:53:29 +0100 Subject: [PATCH] Merge the two consecutive if(!query) clauses. --- src/mkws-widget.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mkws-widget.js b/src/mkws-widget.js index 70bd0d0..3205990 100644 --- a/src/mkws-widget.js +++ b/src/mkws-widget.js @@ -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; -- 1.7.10.4