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