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