]> git.mxchange.org Git - friendica.git/commitdiff
Fix option syntax for textcomplete
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 8 Aug 2020 19:19:04 +0000 (15:19 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 8 Aug 2020 19:19:04 +0000 (15:19 -0400)
view/js/autocomplete.js

index c3993603b4bacf619238d8d740a382d277e18e8d..d83f54c7c158ea6572b80c1117f5dd7ce2aa26a7 100644 (file)
@@ -293,7 +293,7 @@ function string2bb(element) {
                };
 
                this.attr('autocomplete','off');
-               this.textcomplete([contacts, forums, smilies, tags], {className:'acpopup', zIndex:10000});
+               this.textcomplete([contacts, forums, smilies, tags], {dropdown: {className:'acpopup'}});
                this.fixTextcompleteEscape();
 
                return this;
@@ -328,7 +328,7 @@ function string2bb(element) {
                };
 
                this.attr('autocomplete', 'off');
-               this.textcomplete([contacts, community, tags], {className:'acpopup', maxCount:100, zIndex: 10000, appendTo:'nav'});
+               this.textcomplete([contacts, community, tags], {dropdown: {className:'acpopup', maxCount:100}});
                this.fixTextcompleteEscape();
                this.on('textComplete:select', function(e, value, strategy) { submit_form(this); });
 
@@ -349,7 +349,7 @@ function string2bb(element) {
                };
 
                this.attr('autocomplete','off');
-               this.textcomplete([names], {className:'acpopup', zIndex:10000});
+               this.textcomplete([names], {dropdown: {className:'acpopup'}});
                this.fixTextcompleteEscape();
 
                if(autosubmit) {
@@ -399,7 +399,7 @@ function string2bb(element) {
                };
 
                this.attr('autocomplete','off');
-               this.textcomplete([bbco], {className:'acpopup', zIndex:10000});
+               this.textcomplete([bbco], {dropdown: {className:'acpopup'}});
                this.fixTextcompleteEscape();
 
                this.on('textComplete:select', function(e, value, strategy) { value; });