diff options
Diffstat (limited to 'docs/components/angular-bootstrap')
| -rw-r--r-- | docs/components/angular-bootstrap/bootstrap-prettify.js | 5 | ||||
| -rw-r--r-- | docs/components/angular-bootstrap/bootstrap.js | 9 | 
2 files changed, 7 insertions, 7 deletions
| diff --git a/docs/components/angular-bootstrap/bootstrap-prettify.js b/docs/components/angular-bootstrap/bootstrap-prettify.js index ad5340e5..fa40c6e7 100644 --- a/docs/components/angular-bootstrap/bootstrap-prettify.js +++ b/docs/components/angular-bootstrap/bootstrap-prettify.js @@ -183,8 +183,8 @@ directive.ngEvalJavascript = ['getEmbeddedTemplate', function(getEmbeddedTemplat  }]; -directive.ngEmbedApp = ['$templateCache', '$browser', '$rootScope', '$location', '$sniffer', -                function($templateCache,   $browser,  docsRootScope, $location,   $sniffer) { +directive.ngEmbedApp = ['$templateCache', '$browser', '$rootScope', '$location', '$sniffer', '$animate', +                function($templateCache,   $browser,  docsRootScope, $location,   $sniffer, $animate) {    return {      terminal: true,      link: function(scope, element, attrs) { @@ -193,6 +193,7 @@ directive.ngEmbedApp = ['$templateCache', '$browser', '$rootScope', '$location',            deregisterEmbedRootScope;        modules.push(['$provide', function($provide) { +        $provide.value('$animate', $animate);          $provide.value('$templateCache', $templateCache);          $provide.value('$anchorScroll', angular.noop);          $provide.value('$browser', $browser); diff --git a/docs/components/angular-bootstrap/bootstrap.js b/docs/components/angular-bootstrap/bootstrap.js index 170e8805..20a5741d 100644 --- a/docs/components/angular-bootstrap/bootstrap.js +++ b/docs/components/angular-bootstrap/bootstrap.js @@ -335,12 +335,11 @@ directive.tabPane = function() {    };  }; -directive.foldout = ['$http', '$animator','$window', function($http, $animator, $window) { +directive.foldout = ['$http', '$animate','$window', function($http, $animate, $window) {    return {      restrict: 'A',      priority : 500,      link: function(scope, element, attrs) { -      var animator = $animator(scope, { ngAnimate: "'foldout'" });        var container, loading, url = attrs.url;        if(/\/build\//.test($window.location.href)) {          url = '/build/docs' + url; @@ -353,7 +352,7 @@ directive.foldout = ['$http', '$animator','$window', function($http, $animator,              loading = true;              var par = element.parent();              container = angular.element('<div class="foldout">loading...</div>'); -            animator.enter(container, null, par); +            $animate.enter(container, null, par);              $http.get(url, { cache : true }).success(function(html) {                loading = false; @@ -367,12 +366,12 @@ directive.foldout = ['$http', '$animator','$window', function($http, $animator,                //avoid showing the element if the user has already closed it                if(container.css('display') == 'block') {                  container.css('display','none'); -                animator.show(container); +                $animate.show(container);                }              });            }            else { -            container.css('display') == 'none' ? animator.show(container) : animator.hide(container); +            container.hasClass('ng-hide') ? $animate.show(container) : $animate.hide(container);            }          });        }); | 
