From 5b59e936923885cb375cb7d540f5b8ad754d848d Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 23 Apr 2014 16:01:37 +0100 Subject: [PATCH] More compact fomatting in triggerSearch function. --- src/mkws-team.js | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/src/mkws-team.js b/src/mkws-team.js index 1ad267d..e1cadb7 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -262,29 +262,17 @@ function team($, teamName) { // Continue to use previous query/sort-order unless new ones are specified - if (query) { - m_query = query; - } - if (sortOrder) { - m_sortOrder = sortOrder; - } - if (perpage) { - m_perpage = perpage; - } - if (targets) { - m_filterSet.add(filter(id, id)); - } + if (query) m_query = query; + if (sortOrder) m_sortOrder = sortOrder; + if (perpage) m_perpage = perpage; + if (targets) m_filterSet.add(filter(id, id)); var pp2filter = m_filterSet.pp2filter(); var pp2limit = m_filterSet.pp2limit(limit); var params = {}; - if (pp2limit) { - params.limit = pp2limit; - } - if (maxrecs) { - params.maxrecs = maxrecs; - } + if (pp2limit) params.limit = pp2limit; + if (maxrecs) params.maxrecs = maxrecs; if (torusquery) { if (!mkws.config.use_service_proxy) alert("can't narrow search by torusquery when Service Proxy is not in use"); -- 1.7.10.4