diff options
Diffstat (limited to 'docs/components')
| -rw-r--r-- | docs/components/angular-bootstrap/bootstrap.js | 4 |
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'); } }); }); |
