Jeez, this is painful. Browser JavaScript must be the world
development environment since the batch-processing systems of the
early 1970s. Every error is diagnosed by silent no-opping.
// wait until the DOM is ready
function domReady ()
{
- document.mkwsSearchForm.onsubmit = onFormSubmitEventHandler;
+ $('.mkwsSearchForm').each(function (i, obj) {
+ var node = this;
+ debug("adding class 'foo' to node " + node);
+ mkws.handle_node_with_team(node, function(tname) {
+ $(node).submit(onFormSubmitEventHandler);
+ });
+ });
+
document.mkwsSearchForm.mkwsQuery.value = '';
if (document.mkwsSelect) {
if (document.mkwsSelect.mkwsSort)