Remove Search and SearchForm code, now down in the widgets.
authorMike Taylor <mike@indexdata.com>
Mon, 28 Apr 2014 16:48:15 +0000 (17:48 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 28 Apr 2014 16:48:15 +0000 (17:48 +0100)
src/mkws-team.js

index d0ebcc5..8f4235e 100644 (file)
@@ -356,13 +356,6 @@ function team($, teamName) {
        if (m_config.show_lang)
            mkwsHtmlLang();
 
-       log("HTML search form");
-       findnode('.mkwsSearch').html('\
-<form name="mkwsSearchForm" class="mkwsSearchForm mkwsTeam_' + m_teamName + '" action="" >\
-  <input class="mkwsQuery mkwsTeam_' + m_teamName + '" type="text" size="' + m_config.query_width + '" />\
-  <input class="mkwsButton mkwsTeam_' + m_teamName + '" type="submit" value="' + M('Search') + '" />\
-</form>');
-
        log("HTML records");
        // If the team has a .mkwsResults, populate it in the usual
        // way. If not, assume that it's a smarter application that
@@ -412,12 +405,6 @@ function team($, teamName) {
         ranking_data += '</form>';
        findnode(".mkwsRanking").html(ranking_data);
 
-       findnode('.mkwsSearchForm').submit(function() {
-           var val = widgetNode('Query').val();
-           newSearch(val);
-           return false;
-       });
-
        // on first page, hide the termlist
        $(document).ready(function() {
             var t = widgetNode("Termlists");