reset dropdown on hide

This commit is contained in:
Felix Niklas 2014-09-18 00:16:39 +02:00
parent 9acad47838
commit e4138e8cde
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,7 @@ class App.TicketCreate extends App.Controller
'submit form': 'submit' 'submit form': 'submit'
'click .submit': 'submit' 'click .submit': 'submit'
'click .cancel': 'cancel' 'click .cancel': 'cancel'
'hide.bs.dropdown .js-recipientDropdown': 'hideOrganisationMembers'
'click .js-organisation': 'showOrganisationMembers' 'click .js-organisation': 'showOrganisationMembers'
'click .js-back': 'hideOrganisationMembers' 'click .js-back': 'hideOrganisationMembers'

View file

@ -27,7 +27,7 @@
<input type="hidden" name="formSenderType"/> <input type="hidden" name="formSenderType"/>
<div class="form-group"> <div class="form-group">
<label for="customer_id">Customer</label> <label for="customer_id">Customer</label>
<div class="dropdown"> <div class="dropdown js-recipientDropdown">
<div class="dropdown-toggle u-positionOrigin" data-toggle="dropdown"> <div class="dropdown-toggle u-positionOrigin" data-toggle="dropdown">
<input id="customer_id" name="customer_id_autocompletion" class="ui-autocomplete-input form-control" autocapitalize="off" placeholder="Enter Person or Organisation/Company" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"> <input id="customer_id" name="customer_id_autocompletion" class="ui-autocomplete-input form-control" autocapitalize="off" placeholder="Enter Person or Organisation/Company" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true">
<span class="caret"></span> <span class="caret"></span>