]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix search form controls when sphinx is disabled
authorAndrew Dolgov <fox@fakecake.org>
Sun, 21 Nov 2010 10:45:37 +0000 (13:45 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Sun, 21 Nov 2010 10:45:37 +0000 (13:45 +0300)
modules/popup-dialog.php

index 5d225da57fa80d2868abfa215fa0cbe42cc4d0b5..0fc9cf9b84292f1be62d8624e816075f4e48504b 100644 (file)
 
                        if (!SPHINX_ENABLE) {
 
-                               print "<input onkeypress=\"return filterCR(event, search)\"
-                                       name=\"query\" size=\"20\" type=\"search\"      value=''>";
+                               print "<input dojoType=\"dijit.form.ValidationTextBox\" 
+                                       style=\"font-size : 16px; width : 12em;\"
+                                       required=\"1\" name=\"query\" type=\"search\" value=''>";
 
                                print " " . __('match on')." ";
 
                                                "content" => __("Content"),
                                        "both" => __("Title or content"));
        
-                               print_select_hash("match_on", 3, $search_fields); 
+                               print_select_hash("match_on", 3, $search_fields, 
+                                       'dojoType="dijit.form.Select"'); 
                        } else {
                                print "<input dojoType=\"dijit.form.ValidationTextBox\" 
                                        style=\"font-size : 16px; width : 20em;\"