1 (function(angular
, $, _
) {
3 angular
.module('statuspage')
4 .filter('trusted', function($sce
){ return $sce
.trustAsHtml
; })
6 .service('statuspageSeverityList', function() {
7 return ['debug', 'info', 'notice', 'warning', 'error', 'critical', 'alert', 'emergency'];
10 // Todo: abstract this into a generic crmUi directive?
11 .directive('statuspagePopupMenu', function($timeout
) {
13 templateUrl
: '~/statuspage/SnoozeOptions.html',
16 link: function(scope
, element
, attr
) {
17 element
.on('click', '.hush-menu-button', function() {
19 $('ul', element
).show().menu();
20 element
.closest('h3').addClass('menuopen');
21 $('body').one('click', function() {
22 $('ul', element
).menu('destroy').hide();
23 element
.closest('h3').removeClass('menuopen');
31 })(angular
, CRM
.$, CRM
._
);