Fixed issue #546 - Do not show arrow down on ajax auto completion fields.
This commit is contained in:
parent
32532ae7c5
commit
baffceda52
3 changed files with 4 additions and 3 deletions
|
@ -14,7 +14,8 @@ class App.UiElement.autocompletion_ajax
|
||||||
name: attribute.name
|
name: attribute.name
|
||||||
id: params.organization_id || attribute.value
|
id: params.organization_id || attribute.value
|
||||||
placeholder: App.i18n.translateInline('Search...')
|
placeholder: App.i18n.translateInline('Search...')
|
||||||
limt: 10
|
limit: 40
|
||||||
object: attribute.relation
|
object: attribute.relation
|
||||||
|
ajax: true
|
||||||
)
|
)
|
||||||
searchableAjaxSelectObject.element()
|
searchableAjaxSelectObject.element()
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<span class="searchableSelect-autocomplete-invisible js-autocomplete-invisible"></span>
|
<span class="searchableSelect-autocomplete-invisible js-autocomplete-invisible"></span>
|
||||||
<span class="searchableSelect-autocomplete-visible js-autocomplete-visible"></span>
|
<span class="searchableSelect-autocomplete-visible js-autocomplete-visible"></span>
|
||||||
</div>
|
</div>
|
||||||
<%- @Icon('arrow-down', 'dropdown-arrow') %>
|
<% if !@ajax: %><%- @Icon('arrow-down', 'dropdown-arrow') %><% end %>
|
||||||
<div class="small loading icon"></div>
|
<div class="small loading icon"></div>
|
||||||
</div>
|
</div>
|
||||||
<ul class="dropdown-menu dropdown-menu-left js-optionsList" role="menu">
|
<ul class="dropdown-menu dropdown-menu-left js-optionsList" role="menu">
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<%- @tokens %>
|
<%- @tokens %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<input name="<%- @attribute.name %>_completion" class="user-select token-input js-userSelect" autocapitalize="off" placeholder="<%- @attribute.placeholder %>" autocomplete="off" role="textbox" aria-autocomplete="list" value="<%= @name %>" aria-haspopup="true">
|
<input name="<%- @attribute.name %>_completion" class="user-select token-input js-userSelect" autocapitalize="off" placeholder="<%- @attribute.placeholder %>" autocomplete="off" role="textbox" aria-autocomplete="list" value="<%= @name %>" aria-haspopup="true">
|
||||||
<%- @Icon('arrow-down', 'dropdown-arrow') %>
|
<% if @attribute.disableCreateUser isnt true: %><%- @Icon('arrow-down', 'dropdown-arrow') %><% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dropdown-menu" aria-labelledby="customer_id">
|
<div class="dropdown-menu" aria-labelledby="customer_id">
|
||||||
|
|
Loading…
Reference in a new issue