mirror of https://gitlab.com/bashrc2/epicyon
Show message if no emoji are found
parent
7a88dea618
commit
524b7dec4c
|
@ -82,6 +82,7 @@ def htmlSearchEmoji(cssCache: {}, translate: {},
|
||||||
customEmojiJson = loadJson(customEmojiLookupFilename)
|
customEmojiJson = loadJson(customEmojiLookupFilename)
|
||||||
if customEmojiJson:
|
if customEmojiJson:
|
||||||
emojiJson = dict(emojiJson, **customEmojiJson)
|
emojiJson = dict(emojiJson, **customEmojiJson)
|
||||||
|
|
||||||
results = {}
|
results = {}
|
||||||
for emojiName, filename in emojiJson.items():
|
for emojiName, filename in emojiJson.items():
|
||||||
if searchStr in emojiName:
|
if searchStr in emojiName:
|
||||||
|
@ -89,6 +90,11 @@ def htmlSearchEmoji(cssCache: {}, translate: {},
|
||||||
for emojiName, filename in emojiJson.items():
|
for emojiName, filename in emojiJson.items():
|
||||||
if emojiName in searchStr:
|
if emojiName in searchStr:
|
||||||
results[emojiName] = filename + '.png'
|
results[emojiName] = filename + '.png'
|
||||||
|
|
||||||
|
if not results:
|
||||||
|
emojiForm += '<center><h5>' + \
|
||||||
|
translate['No results'] + '</h5></center>'
|
||||||
|
|
||||||
headingShown = False
|
headingShown = False
|
||||||
emojiForm += '<center>'
|
emojiForm += '<center>'
|
||||||
msgStr1 = translate['Copy the text then paste it into your post']
|
msgStr1 = translate['Copy the text then paste it into your post']
|
||||||
|
|
Loading…
Reference in New Issue