aboutsummaryrefslogtreecommitdiffstats
path: root/docs/components/angular-bootstrap/bootstrap.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/components/angular-bootstrap/bootstrap.js')
-rw-r--r--docs/components/angular-bootstrap/bootstrap.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/components/angular-bootstrap/bootstrap.js b/docs/components/angular-bootstrap/bootstrap.js
index 20a5741d..31ec763e 100644
--- a/docs/components/angular-bootstrap/bootstrap.js
+++ b/docs/components/angular-bootstrap/bootstrap.js
@@ -366,12 +366,12 @@ directive.foldout = ['$http', '$animate','$window', function($http, $animate, $w
//avoid showing the element if the user has already closed it
if(container.css('display') == 'block') {
container.css('display','none');
- $animate.show(container);
+ $animate.addClass(container, 'ng-hide');
}
});
}
else {
- container.hasClass('ng-hide') ? $animate.show(container) : $animate.hide(container);
+ container.hasClass('ng-hide') ? $animate.removeClass(container, 'ng-hide') : $animate.addClass(container, 'ng-hide');
}
});
});