Sha256: a0b071f62746a069438d91f35040e1c67db789e84b91db0552c424f401dd23bb

Contents?: true

Size: 1.97 KB

Versions: 8

Compression:

Stored size: 1.97 KB

Contents

/*
 AngularJS v1.0.1
 (c) 2010-2012 Google, Inc. http://angularjs.org
 License: MIT
*/
(function(n,j){'use strict';j.module("bootstrap",[]).directive({dropdownToggle:["$document","$location","$window",function(h,e){var d=null,a;return{restrict:"C",link:function(g,b){g.$watch(function(){return e.path()},function(){a&&a()});b.parent().bind("click",function(){a&&a()});b.bind("click",function(i){i.preventDefault();i.stopPropagation();i=!1;d&&(i=d===b,a());i||(b.parent().addClass("open"),d=b,a=function(c){c&&c.preventDefault();c&&c.stopPropagation();h.unbind("click",a);b.parent().removeClass("open");
d=a=null},h.bind("click",a))})}}}],tabbable:function(){return{restrict:"C",compile:function(h){var e=j.element('<ul class="nav nav-tabs"></ul>'),d=j.element('<div class="tab-content"></div>');d.append(h.contents());h.append(e).append(d)},controller:["$scope","$element",function(h,e){var d=e.contents().eq(0),a=e.controller("ngModel")||{},g=[],b;a.$render=function(){var a=this.$viewValue;if(b?b.value!=a:a)if(b&&(b.paneElement.removeClass("active"),b.tabElement.removeClass("active"),b=null),a){for(var c=
0,d=g.length;c<d;c++)if(a==g[c].value){b=g[c];break}b&&(b.paneElement.addClass("active"),b.tabElement.addClass("active"))}};this.addPane=function(e,c){function l(){f.title=c.title;f.value=c.value||c.title;if(!a.$setViewValue&&(!a.$viewValue||f==b))a.$viewValue=f.value;a.$render()}var k=j.element("<li><a href></a></li>"),m=k.find("a"),f={paneElement:e,paneAttrs:c,tabElement:k};g.push(f);c.$observe("value",l)();c.$observe("title",function(){l();m.text(f.title)})();d.append(k);k.bind("click",function(b){b.preventDefault();
b.stopPropagation();a.$setViewValue?h.$apply(function(){a.$setViewValue(f.value);a.$render()}):(a.$viewValue=f.value,a.$render())});return function(){f.tabElement.remove();for(var a=0,b=g.length;a<b;a++)f==g[a]&&g.splice(a,1)}}}]}},tabPane:function(){return{require:"^tabbable",restrict:"C",link:function(h,e,d,a){e.bind("$remove",a.addPane(e,d))}}}})})(window,window.angular);

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
angularjs_scaffold-0.0.22 lib/generators/angularjs/install/templates/angularjs/angular-bootstrap-1.0.1.min.js
explainer_angularjs_scaffold-0.0.23 lib/generators/angularjs/install/templates/angularjs/angular-bootstrap-1.0.1.min.js
explainer_angularjs_scaffold-0.0.22 lib/generators/angularjs/install/templates/angularjs/angular-bootstrap-1.0.1.min.js
explainer_angularjs_scaffold-0.0.21 lib/generators/angularjs/install/templates/angularjs/angular-bootstrap-1.0.1.min.js
angularjs_scaffold-0.0.19 lib/generators/angularjs/install/templates/angularjs/angular-bootstrap-1.0.1.min.js
angularjs_scaffold-0.0.18 lib/generators/angularjs/install/templates/angularjs/angular-bootstrap-1.0.1.min.js
angularjs_scaffold-0.0.17 lib/generators/angularjs/install/templates/angularjs/angular-bootstrap-1.0.1.min.js
angularjs_scaffold-0.0.16 lib/generators/angularjs/install/templates/angularjs/angular-bootstrap-1.0.1.min.js