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")