replace css slidedown by jquery
parent
35b7894346
commit
ce2fa41d7d
|
@ -194,15 +194,22 @@ WebhookDirective = ($rs, $repo, $confirm, $loading, $translate) ->
|
|||
|
||||
$el.on "click", ".toggle-history", (event) ->
|
||||
target = angular.element(event.currentTarget)
|
||||
|
||||
if not webhook.logs? or webhook.logs.length == 0
|
||||
updateLogs().then ->
|
||||
#Waiting for ng-repeat to finish
|
||||
timeout 0, ->
|
||||
$el.find(".webhooks-history").toggleClass("open")
|
||||
$el.find(".webhooks-history")
|
||||
.toggleClass("open")
|
||||
.slideToggle()
|
||||
|
||||
updateShowHideHistoryText()
|
||||
|
||||
else
|
||||
$el.find(".webhooks-history").toggleClass("open")
|
||||
$el.find(".webhooks-history")
|
||||
.toggleClass("open")
|
||||
.slideToggle()
|
||||
|
||||
$scope.$apply () ->
|
||||
updateShowHideHistoryText()
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ div.wrapper.roles(ng-controller="WebhooksController as ctrl",
|
|||
a.delete-webhook(href="", title="{{'ADMIN.WEBHOOKS.DELETE' | translate}}")
|
||||
tg-svg(svg-icon="icon-trash")
|
||||
|
||||
div.webhooks-history(ng-show="webhook.logs")
|
||||
div.webhooks-history
|
||||
div.history-single-wrapper(ng-repeat="log in webhook.logs")
|
||||
div.history-single
|
||||
div
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
}
|
||||
|
||||
.webhooks-history {
|
||||
@include slide(1000px, hidden, $min: 0);
|
||||
display: none;
|
||||
}
|
||||
|
||||
.history-single-wrapper {
|
||||
|
|
Loading…
Reference in New Issue