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
1a7ccd0f
Commit
1a7ccd0f
authored
Apr 20, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed animation from labels filter
parent
5cefd8ab
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
21 deletions
+5
-21
issues.js.coffee
app/assets/javascripts/issues.js.coffee
+4
-20
_labels_row.html.haml
app/views/shared/_labels_row.html.haml
+0
-0
_filter.html.haml
app/views/shared/issuable/_filter.html.haml
+1
-1
No files found.
app/assets/javascripts/issues.js.coffee
View file @
1a7ccd0f
...
...
@@ -29,11 +29,9 @@
toggleLabelFilters
:
()
->
$filteredLabels
=
$
(
'.filtered-labels'
)
if
$filteredLabels
.
find
(
'.label-row'
).
length
>
0
#$filteredLabels.show()
$filteredLabels
.
slideDown
().
css
({
'overflow'
:
'visible'
})
$filteredLabels
.
removeClass
(
'hidden'
)
else
#$filteredLabels.hide()
$filteredLabels
.
slideUp
().
css
({
'overflow'
:
'visible'
})
$filteredLabels
.
addClass
(
'hidden'
)
reload
:
->
Issues
.
initChecks
()
...
...
@@ -96,25 +94,11 @@
Issues
.
reload
()
Issues
.
updateStateFilters
()
$filteredLabels
=
$
(
'.filtered-labels'
)
$filteredLabelsSpans
=
$filteredLabels
.
find
(
'.label-row'
)
gl
.
animate
.
animateEach
(
$filteredLabelsSpans
,
'fadeOutDown'
,
20
,
cssStart
:
opacity
:
1
cssEnd
:
opacity
:
0
).
then
(
->
if
typeof
Issue
.
labelRow
is
'function'
$filteredLabels
.
html
(
Issue
.
labelRow
(
data
))
Issues
.
toggleLabelFilters
()
$spans
=
$filteredLabels
.
find
(
'.label-row'
)
$spans
.
css
(
'opacity'
,
0
)
return
gl
.
animate
.
animateEach
$spans
,
'fadeInUp'
,
20
,
cssStart
:
opacity
:
0
cssEnd
:
opacity
:
1
)
dataType
:
"json"
...
...
app/views/shared/_labels_row.html.haml
View file @
1a7ccd0f
app/views/shared/issuable/_filter.html.haml
View file @
1a7ccd0f
...
...
@@ -46,7 +46,7 @@
.filter-item.inline
=
button_tag
"Update issues"
,
class:
"btn update_selected_issues btn-save"
.gray-content-block.second-block.filtered-labels
.gray-content-block.second-block.filtered-labels
{
class:
(
"hidden"
if
!
@labels
)
}
-
if
@labels
=
render
"shared/labels_row"
,
labels:
@labels
...
...
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