From d033238efc71b86446991b4f3e8cbc1fbbdefcf2 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 13 Aug 2014 16:04:23 +0100 Subject: [PATCH] forgot to commit files --- services/web/public/coffee/base.coffee | 2 +- services/web/public/coffee/libs.coffee | 2 +- services/web/public/coffee/main/translations.coffee | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/services/web/public/coffee/base.coffee b/services/web/public/coffee/base.coffee index 48d668e2c5..c79f8e6d45 100644 --- a/services/web/public/coffee/base.coffee +++ b/services/web/public/coffee/base.coffee @@ -10,7 +10,7 @@ define [ "ng-context-menu" "underscore" "ngSanitize" - "ngCookies" + "ipCookie" ]) return App \ No newline at end of file diff --git a/services/web/public/coffee/libs.coffee b/services/web/public/coffee/libs.coffee index 4d2b6c3438..5124c53185 100644 --- a/services/web/public/coffee/libs.coffee +++ b/services/web/public/coffee/libs.coffee @@ -8,5 +8,5 @@ define [ "libs/jquery.storage" "libs/fineuploader" "libs/angular-sanitize-1.2.17" - "libs/angular-cookies-1.2.22" + "libs/angular-cookie" ], () -> diff --git a/services/web/public/coffee/main/translations.coffee b/services/web/public/coffee/main/translations.coffee index ef4cec89b7..ae07a3aa0a 100644 --- a/services/web/public/coffee/main/translations.coffee +++ b/services/web/public/coffee/main/translations.coffee @@ -1,10 +1,10 @@ define [ "base" ], (App) -> - App.controller "TranslationsPopupController", ($scope, $cookies) -> + App.controller "TranslationsPopupController", ($scope, ipCookie) -> - $scope.hidei18nNotification = $cookies.hidei18nNotification + $scope.hidei18nNotification = ipCookie("hidei18nNotification") $scope.dismiss = -> - $cookies.hidei18nNotification = true - $scope.hidei18nNotification = $cookies.hidei18nNotification + ipCookie("hidei18nNotification", true, {expires:180}) + $scope.hidei18nNotification = ipCookie("hidei18nNotification")