X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=ang%2FcrmStatusPage%2FStatusPageServices.js;h=e895d8979caa77e01267cf254dc9d710abd343a8;hb=728c1cc31d0d323f74f7b980a1e183fb499d4e9e;hp=0173484b5cb930acdbe3f3186c9e6dfa8b2d8109;hpb=027a36872cf94f3318ffea9ee610c562ad8cbc90;p=civicrm-core.git diff --git a/ang/crmStatusPage/StatusPageServices.js b/ang/crmStatusPage/StatusPageServices.js index 0173484b5c..e895d8979c 100644 --- a/ang/crmStatusPage/StatusPageServices.js +++ b/ang/crmStatusPage/StatusPageServices.js @@ -1,16 +1,12 @@ (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) { @@ -27,7 +23,7 @@ // 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(); - }) + }); } }; });