fix history tab change
parent
2a3dea54b0
commit
0a5f7371f3
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue