fix history tab change

stable
Juanfran 2016-04-27 10:07:10 +02:00
parent 2a3dea54b0
commit 0a5f7371f3
2 changed files with 3 additions and 4 deletions

View File

@ -467,11 +467,11 @@ HistoryDirective = ($log, $loading, $qqueue, $template, $confirm, $translate, $c
$el.on "focus", ".add-comment textarea", (event) ->
$(this).addClass('active')
$el.on "click", ".history-tabs li", (event) ->
$el.on "click", ".history-tabs a", (event) ->
target = angular.element(event.currentTarget)
$el.find(".history-tabs li").removeClass("active")
target.addClass("active")
target.parent().addClass("active")
$el.find(".history section").addClass("hidden")
$el.find(".history section.#{target.data('section-class')}").removeClass("hidden")

View File

@ -4,10 +4,9 @@ section.history
<% if (commentsVisible || historyVisible) { %>
ul.history-tabs
<% if (commentsVisible) { %>
li
li.active
a(
href="",
class="active",
data-section-class="history-comments"
)
tg-svg(svg-icon="icon-writer")