Comparison bug when deleting builds

This commit is contained in:
Colin McLeod
2015-05-26 00:18:37 -07:00
parent 0993a72d25
commit f54130f6a2
6 changed files with 53 additions and 10 deletions

View File

@@ -28,11 +28,15 @@ angular.module('app').directive('shipyardHeader', ['lodash','$window','$rootScop
scope.openedMenu = null;
});
// Listen to close event to close opened menus or modals
$rootScope.$on('close', function () {
scope.openedMenu = null;
$rootScope.showAbout = false;
});
/**
* Save selected insurance option in localstorage
*/
scope.updateInsurance = function(){
$window.localStorage.setItem('insurance', $rootScope.insurance.current.name);
};