mirror of
https://github.com/friendica/friendica
synced 2024-11-18 23:03:40 +00:00
Merge pull request #8992 from MrPetovan/bug/8941-bookmarklet-autocomplete
Enable autocomplete in Bookmarklet
This commit is contained in:
commit
6f84b13e2a
3 changed files with 10 additions and 6 deletions
|
@ -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; });
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue