summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-21 13:45:37 +0300
committerAndrew Dolgov <[email protected]>2010-11-21 13:45:37 +0300
commita3042404549888903a350d1009f6d76c91d7b011 (patch)
treeaf7196d63308f45b76b1a6b1803a6d66d9b7ef31 /modules
parentd1bcacaeb9b4277c2732bdf2b981a3c3059c47e5 (diff)
fix search form controls when sphinx is disabled
Diffstat (limited to 'modules')
-rw-r--r--modules/popup-dialog.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php
index 5d225da57..0fc9cf9b8 100644
--- a/modules/popup-dialog.php
+++ b/modules/popup-dialog.php
@@ -387,8 +387,9 @@
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')." ";
@@ -397,7 +398,8 @@
"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;\"