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
83fa6865
Commit
83fa6865
authored
9 years ago
by
Rodrigo Nascimento
Browse files
Options
Downloads
Patches
Plain Diff
Remove all references to CollectionFS
parent
e1eb44b3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/views/avatar/avatarPrompt.coffee
+9
-4
9 additions, 4 deletions
client/views/avatar/avatarPrompt.coffee
with
9 additions
and
4 deletions
client/views/avatar/avatarPrompt.coffee
+
9
−
4
View file @
83fa6865
...
...
@@ -45,10 +45,15 @@ Template.avatarPrompt.events
template
.
getSuggestions
()
'change .avatar-file-input'
:
(
event
,
template
)
->
FS
.
Utility
.
eachFile
event
,
(
blob
)
->
file
=
new
FS
.
File
(
blob
)
if
not
file
?
or
file
.
isImage
()
is
false
return
e
=
event
.
originalEvent
or
event
files
=
e
.
target
.
files
if
not
files
or
files
.
length
is
0
files
=
e
.
dataTransfer
?
.
files
or
[]
for
blob
in
files
if
not
/image\/.+/
.
test
blob
.
type
return
reader
=
new
FileReader
()
reader
.
readAsDataURL
(
blob
)
reader
.
onloadend
=
->
...
...
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