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 (from parent 1:
27b7bc8
)
Move utility function findnode() to near the end.
author
Mike Taylor
<mike@indexdata.com>
Mon, 3 Mar 2014 17:18:17 +0000
(17:18 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Mon, 3 Mar 2014 17:18:17 +0000
(17:18 +0000)
tools/htdocs/mkws.js
patch
|
blob
|
history
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
5c40cb3
..
abee7d2
100644
(file)
--- a/
tools/htdocs/mkws.js
+++ b/
tools/htdocs/mkws.js
@@
-256,21
+256,6
@@
function team($, teamName) {
});
});
- // Finds the node of the specified class within the current team
- // Multiple OR-clauses separated by commas are handled
- // More complex cases may not work
- //
- function findnode(selector, teamName) {
- teamName = teamName || m_teamName;
-
- selector = selector.split(',').map(function(s) {
- return s + '.mkwsTeam_' + teamName;
- }).join(',');
-
- return $(selector);
- }
-
-
//
// pz2.js event handlers:
//
//
// pz2.js event handlers:
//
@@
-1180,6
+1165,21
@@
function team($, teamName) {
mkws.M = M; // so the Handlebars helper can use it
mkws.M = M; // so the Handlebars helper can use it
+ // Finds the node of the specified class within the current team
+ // Multiple OR-clauses separated by commas are handled
+ // More complex cases may not work
+ //
+ function findnode(selector, teamName) {
+ teamName = teamName || m_teamName;
+
+ selector = selector.split(',').map(function(s) {
+ return s + '.mkwsTeam_' + teamName;
+ }).join(',');
+
+ return $(selector);
+ }
+
+
// main
(function() {
try {
// main
(function() {
try {