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
Jérome Perrin
gitlab-ce
Commits
d3bdbf55
Commit
d3bdbf55
authored
8 years ago
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with dropdown not opening after removing due date
parent
9052ec8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
app/assets/javascripts/due_date_select.js.coffee
app/assets/javascripts/due_date_select.js.coffee
+9
-7
No files found.
app/assets/javascripts/due_date_select.js.coffee
View file @
d3bdbf55
...
...
@@ -24,7 +24,7 @@ class @DueDateSelect
$value
.
removeAttr
(
'style'
)
)
addDueDate
=
->
addDueDate
=
(
isDropdown
)
->
# Create the post date
value
=
$
(
"input[name='
#{
fieldName
}
']"
).
val
()
...
...
@@ -44,8 +44,9 @@ class @DueDateSelect
data
:
data
beforeSend
:
->
$loading
.
fadeIn
()
$dropdown
.
trigger
(
'loading.gl.dropdown'
)
$selectbox
.
hide
()
if
isDropdown
$dropdown
.
trigger
(
'loading.gl.dropdown'
)
$selectbox
.
hide
()
$value
.
removeAttr
(
'style'
)
$valueContent
.
html
(
mediumDate
)
...
...
@@ -56,21 +57,22 @@ class @DueDateSelect
else
$
(
'.js-remove-due-date-holder'
).
addClass
'hidden'
).
done
(
data
)
->
$dropdown
.
trigger
(
'loaded.gl.dropdown'
)
$dropdown
.
dropdown
(
'toggle'
)
if
isDropdown
$dropdown
.
trigger
(
'loaded.gl.dropdown'
)
$dropdown
.
dropdown
(
'toggle'
)
$loading
.
fadeOut
()
$block
.
on
'click'
,
'.js-remove-due-date'
,
(
e
)
->
e
.
preventDefault
()
$
(
"input[name='
#{
fieldName
}
']"
).
val
''
addDueDate
()
addDueDate
(
false
)
$datePicker
.
datepicker
(
dateFormat
:
'yy-mm-dd'
,
defaultDate
:
$
(
"input[name='
#{
fieldName
}
']"
).
val
()
altField
:
"input[name='
#{
fieldName
}
']"
onSelect
:
->
addDueDate
()
addDueDate
(
true
)
)
$
(
document
)
...
...
This diff is collapsed.
Click to expand it.
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