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:
d3b27e0
)
FINALLY simplify the unnecessary iteration over all one of the search
author
Mike Taylor
<mike@indexdata.com>
Fri, 28 Feb 2014 12:32:33 +0000
(12:32 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Fri, 28 Feb 2014 12:32:33 +0000
(12:32 +0000)
forms of a given team.
tools/htdocs/mkws.js
patch
|
blob
|
history
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
75a88c7
..
5b9ef21
100644
(file)
--- a/
tools/htdocs/mkws.js
+++ b/
tools/htdocs/mkws.js
@@
-917,16
+917,13
@@
function team($, teamName) {
mkws_html_lang();
debug("HTML search form");
mkws_html_lang();
debug("HTML search form");
- // ### There is only one match here by design: fix not to bother looping
- $('.mkwsSearch.mkwsTeam_' + m_teamName).each(function (i, obj) {
- var node = this;
- mkws.handle_node_with_team(this, function(tname) {
- $(node).html('\
+ var node = $('.mkwsSearch.mkwsTeam_' + m_teamName);
+ mkws.handle_node_with_team(node, function(tname) {
+ node.html('\
<form name="mkwsSearchForm" class="mkwsSearchForm mkwsTeam_' + tname + '" action="" >\
<input class="mkwsQuery mkwsTeam_' + tname + '" type="text" size="' + mkws_config.query_width + '" />\
<input class="mkwsButton mkwsTeam_' + tname + '" type="submit" value="' + M('Search') + '" />\
</form>');
<form name="mkwsSearchForm" class="mkwsSearchForm mkwsTeam_' + tname + '" action="" >\
<input class="mkwsQuery mkwsTeam_' + tname + '" type="text" size="' + mkws_config.query_width + '" />\
<input class="mkwsButton mkwsTeam_' + tname + '" type="submit" value="' + M('Search') + '" />\
</form>');
- });
});
debug("HTML records");
});
debug("HTML records");