From 54444ddf3ba0fcd2134741a84053bb2bba38951e Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 24 Nov 2014 13:25:56 -0500 Subject: [PATCH] AngularJS SOGo.UICommon module --- UI/WebServerResources/js/Common/ui-common.js | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 UI/WebServerResources/js/Common/ui-common.js diff --git a/UI/WebServerResources/js/Common/ui-common.js b/UI/WebServerResources/js/Common/ui-common.js new file mode 100644 index 000000000..e7393c9a9 --- /dev/null +++ b/UI/WebServerResources/js/Common/ui-common.js @@ -0,0 +1,22 @@ +/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* JavaScript for common UI services for mobile theme */ + +(function() { + 'use strict'; + + /* Angular module instanciation */ + angular.module('SOGo.UICommon', []) + + .filter('encodeUri', function ($window) { + return $window.encodeURIComponent; + }) + + .filter('decodeUri', function ($window) { + return $window.decodeURIComponent; + }) + + .filter('loc', function () { + return l; + }); + +})();