Merge pull request #8992 from MrPetovan/bug/8941-bookmarklet-autocomplete

Enable autocomplete in Bookmarklet
This commit is contained in:
Tobias Diekershoff 2020-08-09 10:54:32 +02:00 committed by GitHub
commit 6f84b13e2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 6 deletions

View File

@ -293,7 +293,7 @@ function string2bb(element) {
}; };
this.attr('autocomplete','off'); 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(); this.fixTextcompleteEscape();
return this; return this;
@ -328,7 +328,7 @@ function string2bb(element) {
}; };
this.attr('autocomplete', 'off'); 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.fixTextcompleteEscape();
this.on('textComplete:select', function(e, value, strategy) { submit_form(this); }); this.on('textComplete:select', function(e, value, strategy) { submit_form(this); });
@ -349,7 +349,7 @@ function string2bb(element) {
}; };
this.attr('autocomplete','off'); this.attr('autocomplete','off');
this.textcomplete([names], {className:'acpopup', zIndex:10000}); this.textcomplete([names], {dropdown: {className:'acpopup'}});
this.fixTextcompleteEscape(); this.fixTextcompleteEscape();
if(autosubmit) { if(autosubmit) {
@ -399,7 +399,7 @@ function string2bb(element) {
}; };
this.attr('autocomplete','off'); this.attr('autocomplete','off');
this.textcomplete([bbco], {className:'acpopup', zIndex:10000}); this.textcomplete([bbco], {dropdown: {className:'acpopup'}});
this.fixTextcompleteEscape(); this.fixTextcompleteEscape();
this.on('textComplete:select', function(e, value, strategy) { value; }); this.on('textComplete:select', function(e, value, strategy) { value; });

View File

@ -7,7 +7,9 @@
</head> </head>
<body class="minimal"> <body class="minimal">
<section><?php if(!empty($page['content'])) echo $page['content']; ?> <section><?php if(!empty($page['content'])) echo $page['content']; ?>
<div id="page-footer"></div> <div id="page-footer">
<?php echo $page['footer'] ?? ''; ?>
</div>
</section> </section>
</body> </body>
</html> </html>

View File

@ -10,7 +10,9 @@
<div class="generic-page-wrapper"> <div class="generic-page-wrapper">
<?php if(!empty($page['content'])) echo $page['content']; ?> <?php if(!empty($page['content'])) echo $page['content']; ?>
</div> </div>
<div id="page-footer"></div> <div id="page-footer">
<?php echo $page['footer'] ?? ''; ?>
</div>
</section> </section>
<!-- Modal --> <!-- Modal -->
<div id="modal" class="modal fade" tabindex="-1" role="dialog"> <div id="modal" class="modal fade" tabindex="-1" role="dialog">