projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
loadTemplate() guards its own body, so invocations don't have to.
[mkws-moved-to-github.git]
/
tools
/
htdocs
/
mkws.js
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
9f17d0b
..
05ba2a7
100644
(file)
--- a/
tools/htdocs/mkws.js
+++ b/
tools/htdocs/mkws.js
@@
-787,6
+787,9
@@
function _make_mkws_team($, teamName) {
function loadTemplate(name)
{
function loadTemplate(name)
{
+ if (mkws['template' + name])
+ return; // It's already been done
+
var source = $("#mkwsTemplate" + name).html();
if (!source) {
source = defaultTemplate(name);
var source = $("#mkwsTemplate" + name).html();
if (!source) {
source = defaultTemplate(name);