From baffceda5290c88b816f9ac946357659f8fc2746 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 15 Dec 2016 11:30:12 +0100 Subject: [PATCH] Fixed issue #546 - Do not show arrow down on ajax auto completion fields. --- .../app/controllers/_ui_element/autocompletion_ajax.coffee | 3 ++- .../javascripts/app/views/generic/searchable_select.jst.eco | 2 +- .../javascripts/app/views/generic/user_search/input.jst.eco | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_ui_element/autocompletion_ajax.coffee b/app/assets/javascripts/app/controllers/_ui_element/autocompletion_ajax.coffee index 09316dd44..d6a15334d 100644 --- a/app/assets/javascripts/app/controllers/_ui_element/autocompletion_ajax.coffee +++ b/app/assets/javascripts/app/controllers/_ui_element/autocompletion_ajax.coffee @@ -14,7 +14,8 @@ class App.UiElement.autocompletion_ajax name: attribute.name id: params.organization_id || attribute.value placeholder: App.i18n.translateInline('Search...') - limt: 10 + limit: 40 object: attribute.relation + ajax: true ) searchableAjaxSelectObject.element() diff --git a/app/assets/javascripts/app/views/generic/searchable_select.jst.eco b/app/assets/javascripts/app/views/generic/searchable_select.jst.eco index 91629dbb1..4ed94fe1a 100644 --- a/app/assets/javascripts/app/views/generic/searchable_select.jst.eco +++ b/app/assets/javascripts/app/views/generic/searchable_select.jst.eco @@ -17,7 +17,7 @@ - <%- @Icon('arrow-down', 'dropdown-arrow') %> + <% if !@ajax: %><%- @Icon('arrow-down', 'dropdown-arrow') %><% end %>