Finish up create team

This commit is contained in:
Joseph Schorr 2013-11-05 17:20:43 -05:00
parent a3970fa75c
commit 237614dcef
6 changed files with 101 additions and 12 deletions

View file

@ -569,6 +569,15 @@ quayApp.directive('buildStatus', function () {
return directiveDefinitionObject;
});
// Note: ngBlur is not yet in Angular stable, so we add it manaully here.
quayApp.directive('ngBlur', function() {
return function( scope, elem, attrs ) {
elem.bind('blur', function() {
scope.$apply(attrs.ngBlur);
});
};
});
quayApp.run(['$location', '$rootScope', function($location, $rootScope) {
$rootScope.$on('$routeChangeSuccess', function (event, current, previous) {
if (current.$$route.title) {