diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-04-26 13:58:37 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-04-26 13:58:37 +0200 |
commit | 8e0fc9e762be30646b0cb36d55f966cb9d1186d0 (patch) | |
tree | d5d8922d040904c64ee4b2aae7c444cce37e507b /view/js/autocomplete.js | |
parent | fe4defe752a7a22e7d59483fde75b779ee78c3a4 (diff) | |
download | volse-hubzilla-8e0fc9e762be30646b0cb36d55f966cb9d1186d0.tar.gz volse-hubzilla-8e0fc9e762be30646b0cb36d55f966cb9d1186d0.tar.bz2 volse-hubzilla-8e0fc9e762be30646b0cb36d55f966cb9d1186d0.zip |
fix the on select handlers
Diffstat (limited to 'view/js/autocomplete.js')
-rw-r--r-- | view/js/autocomplete.js | 12 |
1 files changed, 6 insertions, 6 deletions
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) { |