Merge pull request #555 from taigaio/issue/2600/comment-activy-tabs

Issue#2600: Fix history/comment tab buttons
stable
David Barragán Merino 2015-06-29 12:49:29 +02:00
commit 944894f06b
2 changed files with 9 additions and 4 deletions

View File

@ -416,8 +416,13 @@ HistoryDirective = ($log, $loading, $qqueue, $template, $confirm, $translate, $c
$(this).addClass('active')
$el.on "click", ".history-tabs li a", (event) ->
$el.find(".history-tabs li a").toggleClass("active")
$el.find(".history section").toggleClass("hidden")
target = angular.element(event.currentTarget)
$el.find(".history-tabs li a").removeClass("active")
target.addClass("active")
$el.find(".history section").addClass("hidden")
$el.find(".history section.#{target.data('section-class')}").removeClass("hidden")
$el.on "click", ".comment-delete", debounce 2000, (event) ->
event.preventDefault()

View File

@ -1,11 +1,11 @@
section.history
ul.history-tabs
li
a(href="#", class="active")
a(href="#", class="active", data-section-class="history-comments")
span.icon.icon-comment
span.tab-title(translate="COMMENTS.TITLE")
li
a(href="#")
a(href="#", data-section-class="history-activity")
span.icon.icon-issues
span.tab-title(translate="ACTIVITY.TITLE")
section.history-comments