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:
26f6bf0
)
Eliminate function onFormSubmitEventHandler, use closure instead.
author
Mike Taylor
<mike@indexdata.com>
Wed, 26 Mar 2014 11:45:34 +0000
(11:45 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 26 Mar 2014 11:45:34 +0000
(11:45 +0000)
src/mkws-team.js
patch
|
blob
|
history
diff --git
a/src/mkws-team.js
b/src/mkws-team.js
index
98d586e
..
bbb59a9
100644
(file)
--- a/
src/mkws-team.js
+++ b/
src/mkws-team.js
@@
-157,15
+157,6
@@
function team($, teamName) {
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
- // when search button pressed
- function onFormSubmitEventHandler()
- {
- var val = findnode('.mkwsQuery').val();
- newSearch(val);
- return false;
- }
-
-
// limit by target functions
that.limitTarget = function (id, name)
{
// limit by target functions
that.limitTarget = function (id, name)
{
@@
-444,7
+435,11
@@
function team($, teamName) {
mkwsHtmlSwitch();
mkwsHtmlSwitch();
- findnode('.mkwsSearchForm').submit(onFormSubmitEventHandler);
+ findnode('.mkwsSearchForm').submit(function() {
+ var val = findnode('.mkwsQuery').val();
+ newSearch(val);
+ return false;
+ });
// on first page, hide the termlist
$(document).ready(function() { findnode(".mkwsTermlists").hide(); });
// on first page, hide the termlist
$(document).ready(function() { findnode(".mkwsTermlists").hide(); });