Merge pull request #8991 from MrPetovan/task/restore-autocomplete-comment
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 9 Aug 2020 08:56:41 +0000 (10:56 +0200)
committerGitHub <noreply@github.com>
Sun, 9 Aug 2020 08:56:41 +0000 (10:56 +0200)
Restore auto-complete in comment boxes beyond the first

view/js/autocomplete.js
view/php/minimal.php
view/theme/frio/php/minimal.php

index 0405715..d9fcddd 100644 (file)
@@ -294,7 +294,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;
@@ -329,7 +329,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); });
 
@@ -350,7 +350,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) {
@@ -400,7 +400,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; });
index 7b8ac61..76e14eb 100644 (file)
@@ -7,7 +7,9 @@
 </head>
 <body class="minimal">
        <section><?php if(!empty($page['content'])) echo $page['content']; ?>
-               <div id="page-footer"></div>
+               <div id="page-footer">
+                       <?php echo $page['footer'] ?? ''; ?>
+               </div>
        </section>
 </body>
 </html>
index 43c5305..2ab0a62 100644 (file)
@@ -10,7 +10,9 @@
                <div  class="generic-page-wrapper">
                        <?php if(!empty($page['content'])) echo $page['content']; ?>
                </div>
-               <div id="page-footer"></div>
+               <div id="page-footer">
+                       <?php echo $page['footer'] ?? ''; ?>
+               </div>
        </section>
        <!-- Modal  -->
        <div id="modal" class="modal fade" tabindex="-1" role="dialog">