From 8e0fc9e762be30646b0cb36d55f966cb9d1186d0 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 26 Apr 2018 13:58:37 +0200 Subject: fix the on select handlers --- view/js/autocomplete.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'view/js') diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index 53c0e540f..7bbcd6451 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -279,7 +279,7 @@ function string2bb(element) { textcomplete.register([contacts,forums,tags], {className:'acpopup', maxCount:100, zIndex: 1020, appendTo:'nav'}); - this.on('textComplete:select', function(e, value, strategy) { submit_form(this); }); + this.on('select', function(e, value, strategy) { submit_form(this); }); }; })( jQuery ); @@ -307,10 +307,10 @@ function string2bb(element) { textcomplete.register([contacts], {className:'acpopup', zIndex:1020}); if(autosubmit) - this.on('textComplete:select', function(e,value,strategy) { submit_form(this); }); + this.on('select', function(e,value,strategy) { submit_form(this); }); if(typeof onselect !== 'undefined') - this.on('textComplete:select', function(e, value, strategy) { onselect(value); }); + this.on('select', function(e, value, strategy) { onselect(value); }); }; })( jQuery ); @@ -339,10 +339,10 @@ function string2bb(element) { textcomplete.register([names], {className:'acpopup', zIndex:1020}); if(autosubmit) - this.on('textComplete:select', function(e,value,strategy) { submit_form(this); }); + this.on('select', function(e,value,strategy) { submit_form(this); }); if(typeof onselect !== 'undefined') - this.on('textComplete:select', function(e, value, strategy) { onselect(value); }); + this.on('select', function(e, value, strategy) { onselect(value); }); }; })( jQuery ); @@ -413,7 +413,7 @@ function string2bb(element) { textcomplete.register([bbco], {className:'acpopup', zIndex:1020}); - this.on('textComplete:select', function(e, value, strategy) { value; }); + this.on('select', function(e, value, strategy) { value; }); this.keypress(function(e){ if (e.keyCode == 13) { -- cgit v1.2.3