(function(angular, $, _) {
- angular.module('statuspage')
+ angular.module('crmStatusPage')
.filter('trusted', function($sce){ return $sce.trustAsHtml; })
- .service('statuspageSeverityList', function() {
- return ['debug', 'info', 'notice', 'warning', 'error', 'critical', 'alert', 'emergency'];
- })
-
// Todo: abstract this into a generic crmUi directive?
.directive('statuspagePopupMenu', function($timeout) {
return {
- templateUrl: '~/statuspage/SnoozeOptions.html',
+ templateUrl: '~/crmStatusPage/SnoozeOptions.html',
transclude: true,
link: function(scope, element, attr) {
});
});
});
+ // TODO: Is there a more "Angular" way to do this animation?
+ element.on('click', 'button:not(.hush-menu-button), li', function() {
+ $(this).closest('div.crm-status-item').slideUp();
+ });
}
};
});