Fix emoji being added to the wrong textbox
This commit is contained in:
parent
d3f080a2a8
commit
33392cd253
3 changed files with 62 additions and 55 deletions
File diff suppressed because one or more lines are too long
|
@ -27,7 +27,7 @@ def favorite_emojis(x):
|
||||||
str = ""
|
str = ""
|
||||||
emojis = sorted(x.items(), key=lambda x: x[1], reverse=True)[:25]
|
emojis = sorted(x.items(), key=lambda x: x[1], reverse=True)[:25]
|
||||||
for k, v in emojis:
|
for k, v in emojis:
|
||||||
str += f'<button class="btn m-1 px-0 emoji" onclick="getEmoji(\'{k}\', \'@form@\')" style="background: None!important; width:60px; overflow: hidden; border: none;" data-bs-toggle="tooltip" title=":{k}:" delay:="0"><img loading="lazy" width=50 src="/assets/images/emojis/{k}.webp" alt="{k}-emoji"/></button>'
|
str += f'<button class="btn m-1 px-0 emoji" onclick="getEmoji(\'{k}\')" style="background: None!important; width:60px; overflow: hidden; border: none;" data-bs-toggle="tooltip" title=":{k}:" delay:="0"><img loading="lazy" width=50 src="/assets/images/emojis/{k}.webp" alt="{k}-emoji"/></button>'
|
||||||
return str
|
return str
|
||||||
|
|
||||||
@app.context_processor
|
@app.context_processor
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<script src="/assets/js/emoji_modal6.js"></script>
|
<script src="/assets/js/emoji_modal7.js"></script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
a.emojitab {
|
a.emojitab {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue