Bug 12944: The autocomplete should only be applied for the form
If it's the result view, the autocomplete should not be apply to the input element (it does not exist). Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
fed02a5fc8
commit
e30a020275
1 changed files with 8 additions and 7 deletions
|
@ -18,13 +18,14 @@
|
|||
"sPaginationType": "four_button"
|
||||
} ) );
|
||||
|
||||
|
||||
patron_autocomplete({
|
||||
patron_container: $("#basket_creators"),
|
||||
input_autocomplete: $("#find_patron"),
|
||||
patron_input_name: 'created_by',
|
||||
field_to_retrieve: 'borrowernumber'
|
||||
});
|
||||
[% UNLESS order_loop %]
|
||||
patron_autocomplete({
|
||||
patron_container: $("#basket_creators"),
|
||||
input_autocomplete: $("#find_patron"),
|
||||
patron_input_name: 'created_by',
|
||||
field_to_retrieve: 'borrowernumber'
|
||||
});
|
||||
[% END %]
|
||||
});
|
||||
|
||||
//]]>
|
||||
|
|
Loading…
Reference in a new issue