From 3870266131ad792ec292038b72d5cac03d3f8a1d Mon Sep 17 00:00:00 2001 From: Dhrubomoy Das Gupta Date: Tue, 6 Jun 2017 18:55:16 -0400 Subject: [PATCH] [Autocomplete] Clicking the arrow will display the entire list of timezones This change is based on the following code review: - Display the entire list of timezones, regardless of what's currently entered. - As soon as the user typed (or deleted chars in the input) then that filtration would take over the list display --- .../general/res/sass/controls/_controls.scss | 1 + platform/forms/bundle.js | 3 ++- .../res/templates/controls/autocomplete.html | 8 +++--- .../src/controllers/AutocompleteController.js | 26 +++++++++++++------ 4 files changed, 26 insertions(+), 12 deletions(-) diff --git a/platform/commonUI/general/res/sass/controls/_controls.scss b/platform/commonUI/general/res/sass/controls/_controls.scss index a826466ac4..b54201e16c 100644 --- a/platform/commonUI/general/res/sass/controls/_controls.scss +++ b/platform/commonUI/general/res/sass/controls/_controls.scss @@ -308,6 +308,7 @@ textarea.lg { position: relative; height: 300px; } top: 8px; left: 210px; font-size: 10px; + cursor: pointer; } .autocompleteOptions { border: 1px solid $colorFormLines; diff --git a/platform/forms/bundle.js b/platform/forms/bundle.js index 7eafc46441..fcd52c0b3c 100644 --- a/platform/forms/bundle.js +++ b/platform/forms/bundle.js @@ -152,7 +152,8 @@ define([ "key": "AutocompleteController", "implementation": AutocompleteController, "depends": [ - "$scope" + "$scope", + "$element" ] }, { diff --git a/platform/forms/res/templates/controls/autocomplete.html b/platform/forms/res/templates/controls/autocomplete.html index b0e4c5db3b..e64085fa4a 100644 --- a/platform/forms/res/templates/controls/autocomplete.html +++ b/platform/forms/res/templates/controls/autocomplete.html @@ -21,13 +21,15 @@ -->
- + - +