View | Details | Raw Unified | Return to bug 27113
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/js/elasticsearch/autocomplete.js (+1 lines)
Lines 116-121 function autocomplete(inp, nb, left, right) { Link Here
116
116
117
                                myset = GetSetAutocomplete(data, prefix, key);
117
                                myset = GetSetAutocomplete(data, prefix, key);
118
                                /* append set to autocomplete */
118
                                /* append set to autocomplete */
119
                                tmp_input = tmp_input.normalize("NFD").replace(/\p{Diacritic}/gu, "");
119
                                if ( tmp_input + prefix == data['val'] + data['prefix'] && token_counter === parseInt(data['token_counter'], 10)){
120
                                if ( tmp_input + prefix == data['val'] + data['prefix'] && token_counter === parseInt(data['token_counter'], 10)){
120
                                    a.innerHTML = "";
121
                                    a.innerHTML = "";
121
                                    for (let item of myset){
122
                                    for (let item of myset){
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/opac-elasticsearch/opac-autocomplete.js (-1 / +1 lines)
Lines 112-117 function autocomplete(inp, nb, left, right) { Link Here
112
112
113
                                myset = GetSetAutocomplete(data, prefix, key);
113
                                myset = GetSetAutocomplete(data, prefix, key);
114
                                /* append set to autocomplete */
114
                                /* append set to autocomplete */
115
                                tmp_input = tmp_input.normalize("NFD").replace(/\p{Diacritic}/gu, "");
115
                                if ( tmp_input + prefix == data['val'] + data['prefix'] && token_counter === parseInt(data['token_counter'], 10)){
116
                                if ( tmp_input + prefix == data['val'] + data['prefix'] && token_counter === parseInt(data['token_counter'], 10)){
116
                                    a.innerHTML = "";
117
                                    a.innerHTML = "";
117
                                    for (let item of myset){
118
                                    for (let item of myset){
118
- 

Return to bug 27113