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
0a14de84
Commit
0a14de84
authored
Mar 22, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename method for better understanding
parent
a42b2c38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/gl_crop.js.coffee
app/assets/javascripts/gl_crop.js.coffee
+4
-4
No files found.
app/assets/javascripts/gl_crop.js.coffee
View file @
0a14de84
...
@@ -27,9 +27,9 @@ class GitLabCrop
...
@@ -27,9 +27,9 @@ class GitLabCrop
# Ensure needed elements are jquery objects
# Ensure needed elements are jquery objects
# If selector is provided we will convert them to a jQuery Object
# If selector is provided we will convert them to a jQuery Object
@
filename
=
@
$
(
@
filename
)
@
filename
=
@
getElement
(
@
filename
)
@
previewImage
=
@
$
(
@
previewImage
)
@
previewImage
=
@
getElement
(
@
previewImage
)
@
pickImageEl
=
@
$
(
@
pickImageEl
)
@
pickImageEl
=
@
getElement
(
@
pickImageEl
)
# Modal elements usually are outside the @form element
# Modal elements usually are outside the @form element
@
modalCrop
=
if
_
.
isString
(
@
modalCrop
)
then
$
(
@
modalCrop
)
else
@
modalCrop
@
modalCrop
=
if
_
.
isString
(
@
modalCrop
)
then
$
(
@
modalCrop
)
else
@
modalCrop
...
@@ -40,7 +40,7 @@ class GitLabCrop
...
@@ -40,7 +40,7 @@ class GitLabCrop
@
bindEvents
()
@
bindEvents
()
$
:
(
selector
)
->
getElement
:
(
selector
)
->
$
(
selector
,
@
form
)
$
(
selector
,
@
form
)
bindEvents
:
->
bindEvents
:
->
...
...
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