From 7dea4e5b0bbcb9f5d88cdca4ce426289c929e756 Mon Sep 17 00:00:00 2001 From: Daniel Barreto Date: Sat, 15 Feb 2014 17:22:35 -0500 Subject: [PATCH] Set minimum Input Length = 3 --- .../inc/lib/formvalidator/Element/select_ajax.php | 8 +++++++- main/mySpace/index.php | 15 +++++++++------ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/main/inc/lib/formvalidator/Element/select_ajax.php b/main/inc/lib/formvalidator/Element/select_ajax.php index 0b907c8553..0f1fe50ad7 100644 --- a/main/inc/lib/formvalidator/Element/select_ajax.php +++ b/main/inc/lib/formvalidator/Element/select_ajax.php @@ -59,13 +59,19 @@ class HTML_QuickForm_Select_Ajax extends HTML_QuickForm_select $width = $givenWidth; } + //Get the minimumInputLength for select2 + $minimumInputLength = ($this->getAttribute('minimumInputLength') > 3)? + $this->getAttribute('minimumInputLength') : + 3 + ; + $html .= '