Issue#2600: Fix history/comment tab buttons

stable
Jesús Espino 2015-06-29 12:37:18 +02:00
parent c98b15ce10
commit 5b69257109
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