projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
50e99f7
)
Remove extraneous guards on loadTemplate()
author
Mike Taylor
<mike@indexdata.com>
Thu, 23 Jan 2014 14:50:37 +0000
(14:50 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Thu, 23 Jan 2014 14:50:37 +0000
(14:50 +0000)
tools/htdocs/mkws.js
patch
|
blob
|
history
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
05ba2a7
..
0ea7223
100644
(file)
--- a/
tools/htdocs/mkws.js
+++ b/
tools/htdocs/mkws.js
@@
-313,10
+313,7
@@
function _make_mkws_team($, teamName) {
function renderSummary(hit)
{
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);
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)
{
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>';
var template = mkws.templateRecord;
var details = template(data);
return '<div class="details" id="mkwsDet_' + data.recid + '">' + details + '</div>';