Sfoglia il codice sorgente

forgot to commit files

Henry Oswald 12 anni fa
parent
commit
d033238efc

+ 1 - 1
services/web/public/coffee/base.coffee

@@ -10,7 +10,7 @@ define [
 		"ng-context-menu"
 		"ng-context-menu"
 		"underscore"
 		"underscore"
 		"ngSanitize"
 		"ngSanitize"
-		"ngCookies"
+		"ipCookie"
 	])
 	])
 
 
 	return App
 	return App

+ 1 - 1
services/web/public/coffee/libs.coffee

@@ -8,5 +8,5 @@ define [
 	"libs/jquery.storage"
 	"libs/jquery.storage"
 	"libs/fineuploader"
 	"libs/fineuploader"
 	"libs/angular-sanitize-1.2.17"
 	"libs/angular-sanitize-1.2.17"
-	"libs/angular-cookies-1.2.22"
+	"libs/angular-cookie"
 ], () ->
 ], () ->

+ 4 - 4
services/web/public/coffee/main/translations.coffee

@@ -1,10 +1,10 @@
 define [
 define [
 	"base"
 	"base"
 ], (App) ->
 ], (App) ->
-	App.controller "TranslationsPopupController", ($scope, $cookies) ->
+	App.controller "TranslationsPopupController", ($scope, ipCookie) ->
 
 
-		$scope.hidei18nNotification = $cookies.hidei18nNotification
+		$scope.hidei18nNotification = ipCookie("hidei18nNotification")
 
 
 		$scope.dismiss = ->
 		$scope.dismiss = ->
-			$cookies.hidei18nNotification = true
-			$scope.hidei18nNotification = $cookies.hidei18nNotification
+			ipCookie("hidei18nNotification", true, {expires:180})
+			$scope.hidei18nNotification = ipCookie("hidei18nNotification")