replace css slidedown by jquery

stable
Juanfran 2016-06-01 09:12:18 +02:00
parent 35b7894346
commit ce2fa41d7d
3 changed files with 11 additions and 4 deletions

View File

@ -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()

View File

@ -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

View File

@ -82,7 +82,7 @@
}
.webhooks-history {
@include slide(1000px, hidden, $min: 0);
display: none;
}
.history-single-wrapper {