BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
7617ae25
Commit
7617ae25
authored
Apr 08, 2016
by
Phil Hughes
Committed by
Robert Speicher
Apr 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with selectbox not hiding
parent
aa22106b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
due_date_select.js.coffee
app/assets/javascripts/due_date_select.js.coffee
+8
-1
No files found.
app/assets/javascripts/due_date_select.js.coffee
View file @
7617ae25
class
@
DueDateSelect
class
@
DueDateSelect
constructor
:
->
constructor
:
->
$loading
=
$
(
'.js-issuable-update .due_date'
).
find
(
'.block-loading'
).
hide
()
$
(
'.js-due-date-select'
).
each
(
i
,
dropdown
)
->
$
(
'.js-due-date-select'
).
each
(
i
,
dropdown
)
->
$dropdown
=
$
(
dropdown
)
$dropdown
=
$
(
dropdown
)
$dropdownParent
=
$dropdown
.
closest
(
'.dropdown'
)
$dropdownParent
=
$dropdown
.
closest
(
'.dropdown'
)
$addBtn
=
$
(
'.js-due-date-add'
,
$dropdownParent
)
$addBtn
=
$
(
'.js-due-date-add'
,
$dropdownParent
)
$datePicker
=
$dropdownParent
.
find
(
'.js-due-date-calendar'
)
$datePicker
=
$dropdownParent
.
find
(
'.js-due-date-calendar'
)
$block
=
$dropdown
.
closest
(
'.block'
)
$block
=
$dropdown
.
closest
(
'.block'
)
$loading
=
$block
.
find
(
'.block-loading'
).
hide
()
$selectbox
=
$dropdown
.
closest
(
'.selectbox'
)
$selectbox
=
$dropdown
.
closest
(
'.selectbox'
)
$value
=
$block
.
find
(
'.value'
)
$value
=
$block
.
find
(
'.value'
)
...
@@ -14,6 +15,12 @@ class @DueDateSelect
...
@@ -14,6 +15,12 @@ class @DueDateSelect
abilityName
=
$dropdown
.
data
(
'ability-name'
)
abilityName
=
$dropdown
.
data
(
'ability-name'
)
issueUpdateURL
=
$dropdown
.
data
(
'issue-update'
)
issueUpdateURL
=
$dropdown
.
data
(
'issue-update'
)
$dropdown
.
glDropdown
(
hidden
:
->
$selectbox
.
hide
()
$value
.
removeAttr
(
'style'
)
)
$addBtn
.
on
'click'
,
(
e
)
->
$addBtn
.
on
'click'
,
(
e
)
->
e
.
preventDefault
()
e
.
preventDefault
()
e
.
stopPropagation
()
e
.
stopPropagation
()
...
...
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