Issue#2600: Fix history/comment tab buttons
parent
c98b15ce10
commit
5b69257109
|
@ -416,8 +416,13 @@ HistoryDirective = ($log, $loading, $qqueue, $template, $confirm, $translate, $c
|
||||||
$(this).addClass('active')
|
$(this).addClass('active')
|
||||||
|
|
||||||
$el.on "click", ".history-tabs li a", (event) ->
|
$el.on "click", ".history-tabs li a", (event) ->
|
||||||
$el.find(".history-tabs li a").toggleClass("active")
|
target = angular.element(event.currentTarget)
|
||||||
$el.find(".history section").toggleClass("hidden")
|
|
||||||
|
$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) ->
|
$el.on "click", ".comment-delete", debounce 2000, (event) ->
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
section.history
|
section.history
|
||||||
ul.history-tabs
|
ul.history-tabs
|
||||||
li
|
li
|
||||||
a(href="#", class="active")
|
a(href="#", class="active", data-section-class="history-comments")
|
||||||
span.icon.icon-comment
|
span.icon.icon-comment
|
||||||
span.tab-title(translate="COMMENTS.TITLE")
|
span.tab-title(translate="COMMENTS.TITLE")
|
||||||
li
|
li
|
||||||
a(href="#")
|
a(href="#", data-section-class="history-activity")
|
||||||
span.icon.icon-issues
|
span.icon.icon-issues
|
||||||
span.tab-title(translate="ACTIVITY.TITLE")
|
span.tab-title(translate="ACTIVITY.TITLE")
|
||||||
section.history-comments
|
section.history-comments
|
||||||
|
|
Loading…
Reference in New Issue