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:
6f59bb0
)
mkws.defaultTemplate simply returns null when there is no template,
author
Mike Taylor
<mike@indexdata.com>
Tue, 10 Jun 2014 15:45:08 +0000
(16:45 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 10 Jun 2014 15:45:08 +0000
(16:45 +0100)
rather than throwing an error. This allows clever calling code to back
off along a sequence of attempted template names.
src/mkws-core.js
patch
|
blob
|
history
diff --git
a/src/mkws-core.js
b/src/mkws-core.js
index
08bedf0
..
a8c0470
100644
(file)
--- a/
src/mkws-core.js
+++ b/
src/mkws-core.js
@@
-270,9
+270,7
@@
onclick="mkws.{{fn}}(\'{{team}}\', \'{{field}}\', \'{{term}}\');return false;"\
';
}
- var s = "There is no default '" + name +"' template!";
- alert(s);
- return s;
+ return null;
};