summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-10-24 23:58:34 +0200
committerDavid Lawrence <dlawrence@mozilla.com>2011-10-24 23:58:34 +0200
commit0074477c0f3d0e78b71ec866526c65c99f0a5c82 (patch)
tree477bb6d3519151b1ad3c9e57ca3e6430f56b8e3f /template
parentd47f6057e0257b3282ff25a144b9ef36ec741012 (diff)
downloadbugzilla-0074477c0f3d0e78b71ec866526c65c99f0a5c82.tar.gz
bugzilla-0074477c0f3d0e78b71ec866526c65c99f0a5c82.tar.xz
Bug 685552 - Email auto-completion causes server to thrash
r/a=mkanat
Diffstat (limited to 'template')
-rw-r--r--template/en/default/admin/params/usermatch.html.tmpl3
-rw-r--r--template/en/default/global/userselect.html.tmpl4
2 files changed, 5 insertions, 2 deletions
diff --git a/template/en/default/admin/params/usermatch.html.tmpl b/template/en/default/admin/params/usermatch.html.tmpl
index 54f150900..d574edca7 100644
--- a/template/en/default/admin/params/usermatch.html.tmpl
+++ b/template/en/default/admin/params/usermatch.html.tmpl
@@ -29,6 +29,9 @@
"needs to be selected. This option should not be enabled on " _
"sites where there are a large number of users.",
+ ajax_user_autocompletion => "If this option is set, typing characters in a certain user " _
+ "fields will display a list of matches that can be selected from.",
+
maxusermatches => "Search for no more than this many matches.<br> " _
"If set to '1', no users will be displayed on ambiguous matches. " _
"This is useful for user privacy purposes.<br> " _
diff --git a/template/en/default/global/userselect.html.tmpl b/template/en/default/global/userselect.html.tmpl
index 600b21c13..1d0395043 100644
--- a/template/en/default/global/userselect.html.tmpl
+++ b/template/en/default/global/userselect.html.tmpl
@@ -79,7 +79,7 @@
[% END %]
</select>
[% ELSE %]
- [% IF id && feature_enabled('jsonrpc') %]
+ [% IF feature_enabled('jsonrpc') && Param('ajax_user_autocompletion') && id %]
<div id="[% id FILTER html %]_autocomplete"
[% IF classes %] class="[% classes.join(' ') FILTER html %]" [% END %]>
[% END %]
@@ -94,7 +94,7 @@
[% IF size %] size="[% size FILTER html %]" [% END %]
[% IF id %] id="[% id FILTER html %]" [% END %]
>
- [% IF id && feature_enabled('jsonrpc') %]
+ [% IF feature_enabled('jsonrpc') && Param('ajax_user_autocompletion') && id %]
<div id="[% id FILTER html %]_autocomplete_container"></div>
</div>
<script type="text/javascript">