Fixed bug #796: Adding beadcrumb to the backlog filters
parent
1baf634d1f
commit
af4580c716
|
@ -80,14 +80,14 @@ BacklogFiltersDirective = ($log, $location) ->
|
||||||
showFilters = (title, type) ->
|
showFilters = (title, type) ->
|
||||||
$el.find(".filters-cats").hide()
|
$el.find(".filters-cats").hide()
|
||||||
$el.find(".filter-list").show()
|
$el.find(".filter-list").show()
|
||||||
$el.find("h2 a.subfilter").removeClass("hidden")
|
$el.find("h2.breadcrumb").removeClass("hidden")
|
||||||
$el.find("h2 a.subfilter span.title").html(title)
|
$el.find("h2 a.subfilter span.title").html(title)
|
||||||
$el.find("h2 a.subfilter span.title").prop("data-type", type)
|
$el.find("h2 a.subfilter span.title").prop("data-type", type)
|
||||||
|
|
||||||
showCategories = ->
|
showCategories = ->
|
||||||
$el.find(".filters-cats").show()
|
$el.find(".filters-cats").show()
|
||||||
$el.find(".filter-list").hide()
|
$el.find(".filter-list").hide()
|
||||||
$el.find("h2 a.subfilter").addClass("hidden")
|
$el.find("h2.breadcrumb").addClass("hidden")
|
||||||
|
|
||||||
initializeSelectedFilters = (filters) ->
|
initializeSelectedFilters = (filters) ->
|
||||||
showCategories()
|
showCategories()
|
||||||
|
@ -153,7 +153,7 @@ BacklogFiltersDirective = ($log, $location) ->
|
||||||
renderFilters(_.reject(tags, "selected"))
|
renderFilters(_.reject(tags, "selected"))
|
||||||
showFilters(target.attr("title"), target.data("type"))
|
showFilters(target.attr("title"), target.data("type"))
|
||||||
|
|
||||||
$el.on "click", ".filters-inner > h1 > a.title", (event) ->
|
$el.on "click", ".filters-inner > .filters-step-cat > .breadcrumb > .back", (event) ->
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
showCategories()
|
showCategories()
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,10 @@ section.filters
|
||||||
|
|
||||||
div.filters-step-cat
|
div.filters-step-cat
|
||||||
div.filters-applied
|
div.filters-applied
|
||||||
h2
|
h2.hidden.breadcrumb
|
||||||
a.hidden.subfilter(href="", title="cat-name")
|
a.back(href="", title="back to categories") Filters
|
||||||
|
span.icon-arrow-right
|
||||||
|
a.subfilter(href="", title="cat-name")
|
||||||
span.title status
|
span.title status
|
||||||
div.filters-cats
|
div.filters-cats
|
||||||
ul
|
ul
|
||||||
|
|
Loading…
Reference in New Issue