Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
a55b653d
Commit
a55b653d
authored
Dec 24, 2015
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix of frequently used emojis
parent
5ed12564
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/awards_handler.coffee
app/assets/javascripts/awards_handler.coffee
+3
-3
No files found.
app/assets/javascripts/awards_handler.coffee
View file @
a55b653d
...
@@ -137,9 +137,9 @@ class @AwardsHandler
...
@@ -137,9 +137,9 @@ class @AwardsHandler
for
emoji
in
frequently_used_emojis
for
emoji
in
frequently_used_emojis
do
(
emoji
)
->
do
(
emoji
)
->
$
(
".emoji-menu-content [data-emoji='
"
+
emoji
+
"
']"
).
closest
(
"li"
).
clone
().
appendTo
(
ul
)
$
(
".emoji-menu-content [data-emoji='
#{
emoji
}
']"
).
closest
(
"li"
).
clone
().
appendTo
(
ul
)
$
(
"
.emoji-menu-content"
).
prepend
(
ul
).
prepend
(
$
(
"<h4
>"
).
text
(
"Frequently used"
))
$
(
"
input.emoji-search"
).
after
(
ul
).
after
(
$
(
"<h5
>"
).
text
(
"Frequently used"
))
setupSearch
:
->
setupSearch
:
->
$
(
"input.emoji-search"
).
keyup
(
ev
)
=>
$
(
"input.emoji-search"
).
keyup
(
ev
)
=>
...
@@ -149,7 +149,7 @@ class @AwardsHandler
...
@@ -149,7 +149,7 @@ class @AwardsHandler
$
(
"ul.emoji-search,h5.emoji-search"
).
remove
()
$
(
"ul.emoji-search,h5.emoji-search"
).
remove
()
if
term
if
term
# Generate search result block
# Generate
a
search result block
h5
=
$
(
"<h5>"
).
text
(
"Search results"
).
addClass
(
"emoji-search"
)
h5
=
$
(
"<h5>"
).
text
(
"Search results"
).
addClass
(
"emoji-search"
)
found_emojis
=
@
searchEmojis
(
term
).
show
()
found_emojis
=
@
searchEmojis
(
term
).
show
()
ul
=
$
(
"<ul>"
).
addClass
(
"emoji-search"
).
append
(
found_emojis
)
ul
=
$
(
"<ul>"
).
addClass
(
"emoji-search"
).
append
(
found_emojis
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment