From: Mike Taylor Date: Wed, 23 Apr 2014 15:01:37 +0000 (+0100) Subject: More compact fomatting in triggerSearch function. X-Git-Tag: 1.0.0~877 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=5b59e936923885cb375cb7d540f5b8ad754d848d;p=mkws-moved-to-github.git More compact fomatting in triggerSearch function. --- 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");