From b1ef06ac929b878163befb7effa54aa13d6426e5 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 24 Oct 2011 17:54:13 -0400 Subject: Bug 685552 - Email auto-completion causes server to thrash r/a=mkanat --- template/en/default/admin/params/usermatch.html.tmpl | 3 +++ template/en/default/global/userselect.html.tmpl | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'template') 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.
" _ "If set to '1', no users will be displayed on ambiguous matches. " _ "This is useful for user privacy purposes.
" _ 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 %] [% ELSE %] - [% IF id && feature_enabled('jsonrpc') %] + [% IF feature_enabled('jsonrpc') && Param('ajax_user_autocompletion') && id %]
[% 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 %]