overleaf/services/web/public/coffee/main/system-messages.coffee

13 lines
448 B
CoffeeScript
Raw Normal View History

2014-07-24 08:24:08 -04:00
define [
"base"
], (App) ->
App.controller "SystemMessagesController", ($scope) ->
$scope.messages = window.systemMessages;
App.controller "SystemMessageController", ($scope, $sce) ->
$scope.hidden = $.localStorage("systemMessage.hide.#{$scope.message._id}")
$scope.htmlContent = $sce.trustAsHtml $scope.message.content
$scope.hide = () ->
$scope.hidden = true
$.localStorage("systemMessage.hide.#{$scope.message._id}", true)