Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
f8270cab
Commit
f8270cab
authored
9 years ago
by
Rodrigo Nascimento
Browse files
Options
Downloads
Patches
Plain Diff
Closes #773; Fix close of mobile message menu on Anndroid
parent
059ab95d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/views/app/sportlight/mobileMessageMenu.coffee
+8
-9
8 additions, 9 deletions
client/views/app/sportlight/mobileMessageMenu.coffee
with
8 additions
and
9 deletions
client/views/app/sportlight/mobileMessageMenu.coffee
+
8
−
9
View file @
f8270cab
...
...
@@ -17,12 +17,11 @@ Template.mobileMessageMenu.events
'mousedown, touchstart'
:
(
event
,
template
)
->
template
.
locked
=
false
'click #cancel'
:
(
event
,
template
,
doc
)
->
'
touchend #cancel,
click #cancel'
:
(
event
,
template
,
doc
)
->
if
template
.
locked
is
true
then
return
mobileMessageMenu
.
hide
()
'click #delete-message'
:
(
event
,
template
,
doc
)
->
'
touchend #delete-message,
click #delete-message'
:
(
event
,
template
,
doc
)
->
if
template
.
locked
is
true
then
return
mobileMessageMenu
.
hide
()
...
...
@@ -40,16 +39,16 @@ Template.mobileMessageMenu.events
closeOnConfirm
:
false
html
:
false
},
->
swal
swal
title
:
t
(
'Deleted'
)
text
:
t
(
'Your_entry_has_been_deleted'
)
type
:
'success'
timer
:
1000
showConfirmButton
:
false
showConfirmButton
:
false
instance
.
chatMessages
.
deleteMsg
(
message
)
'click #report-abuse'
:
(
event
,
template
,
doc
)
->
'
touchend #report-abuse,
click #report-abuse'
:
(
event
,
template
,
doc
)
->
if
template
.
locked
is
true
then
return
swal
{
...
...
@@ -73,11 +72,11 @@ Template.mobileMessageMenu.events
Meteor
.
call
'reportMessage'
,
mobileMessageMenu
.
message
,
inputValue
swal
swal
title
:
"Report sent"
text
:
"Thank you!"
type
:
'success'
timer
:
1000
showConfirmButton
:
false
showConfirmButton
:
false
mobileMessageMenu
.
hide
()
\ No newline at end of file
mobileMessageMenu
.
hide
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment