Remove extraneous guards on loadTemplate()
authorMike Taylor <mike@indexdata.com>
Thu, 23 Jan 2014 14:50:37 +0000 (14:50 +0000)
committerMike Taylor <mike@indexdata.com>
Thu, 23 Jan 2014 14:50:37 +0000 (14:50 +0000)
tools/htdocs/mkws.js

index 05ba2a7..0ea7223 100644 (file)
@@ -313,10 +313,7 @@ function _make_mkws_team($, teamName) {
 
     function renderSummary(hit)
     {
-       if (mkws.templateSummary === undefined) {
-           loadTemplate("Summary");
-       }
-
+       loadTemplate("Summary");
        hit._id = "mkwsRec_" + hit.recid;
        hit._onclick = "mkws.showDetails(this.id);return false;"
        return mkws.templateSummary(hit);
@@ -775,10 +772,7 @@ function _make_mkws_team($, teamName) {
 
     function renderDetails(data, marker)
     {
-       if (mkws.templateRecord === undefined) {
-           loadTemplate("Record");
-       }
-
+       loadTemplate("Record");
        var template = mkws.templateRecord;
        var details = template(data);
        return '<div class="details" id="mkwsDet_' + data.recid + '">' + details + '</div>';