diff options
author | Byron Jones <bjones@mozilla.com> | 2012-11-22 15:25:07 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-11-22 15:25:07 +0100 |
commit | ed17a711ebddc980f89e8290632f566c37bf762f (patch) | |
tree | 19491f770ce31dd1416e481f4c4c30a7ffd39841 /template/en/default/search | |
parent | 468c576588450202d96998d2378949e08406361e (diff) | |
download | bugzilla-ed17a711ebddc980f89e8290632f566c37bf762f.tar.gz bugzilla-ed17a711ebddc980f89e8290632f566c37bf762f.tar.xz |
Bug 780820: Allows for multiple custom search criteria to match one field
Diffstat (limited to 'template/en/default/search')
-rw-r--r-- | template/en/default/search/boolean-charts.html.tmpl | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/template/en/default/search/boolean-charts.html.tmpl b/template/en/default/search/boolean-charts.html.tmpl index 878589cea..d87db1c6a 100644 --- a/template/en/default/search/boolean-charts.html.tmpl +++ b/template/en/default/search/boolean-charts.html.tmpl @@ -78,6 +78,10 @@ <script type="text/javascript" src="[% 'js/history.js/native.history.js' FILTER mtime %]"></script> <script type="text/javascript"> redirect_html4_browsers(); + [%# These are alternative labels for the AND and OR options in and_all_select %] + var cs_and_label = 'Match ALL of the following:'; + var cs_or_label = 'Match ANY of the following:'; + cs_reconfigure('custom_search_last_row'); </script> </div> @@ -134,7 +138,8 @@ ( [% indent_level = indent_level + 1 %] [% ELSIF condition.f == "CP" %] - <input type="hidden" name="f[% cond_num FILTER html %]" value="CP"> + <input type="hidden" name="f[% cond_num FILTER html %]" + id="f[% cond_num FILTER html %]" value="CP"> ) [% ELSE %] <select name="f[% cond_num FILTER html %]" title="Field" @@ -178,9 +183,11 @@ <div class="any_all_select"> <select name="[% name FILTER html %]" id="[% name FILTER html %]" onchange="fix_query_string(this)"> - <option value="AND">Match ALL of the following:</option> + <option value="AND">Match ALL of the following separately:</option> <option value="OR" [% ' selected="selected"' IF selected == "OR" %]> - Match ANY of the following:</option> + Match ANY of the following separately:</option> + <option value="AND_G" [% ' selected' IF selected == "AND_G" %]> + Match ALL of the following against the same field:</option> </select> [% IF with_advanced_link %] <a id="custom_search_advanced_controller" |