From 7363f51e184710bcc7d5677e64156aefe70ecdfd Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 29 Nov 2013 17:22:49 +0000 Subject: [PATCH] renderSummary() simplified by deletion of legacy code. --- tools/htdocs/mkws.js | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index c11738a..2a3f471 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -281,23 +281,9 @@ function renderSummary(hit) loadTemplate("Summary"); } - if (mkws.templateSummary) { - hit._id = "mkwsRec_" + hit.recid; - hit._onclick = "mkws.showDetails(this.id);return false;" - return mkws.templateSummary(hit); - } else { - var html = []; - html.push('' - + hit["md-title"] +' '); - if (hit["md-title-remainder"] !== undefined) { - html.push('' + hit["md-title-remainder"] + ' '); - } - if (hit["md-title-responsibility"] !== undefined) { - html.push(''+hit["md-title-responsibility"]+''); - } - return html.join(''); - } + hit._id = "mkwsRec_" + hit.recid; + hit._onclick = "mkws.showDetails(this.id);return false;" + return mkws.templateSummary(hit); } -- 1.7.10.4