diff --git a/UI/WebServerResources/js/Common/loc.filter.js b/UI/WebServerResources/js/Common/loc.filter.js index b58053f8a..56b3d17bf 100644 --- a/UI/WebServerResources/js/Common/loc.filter.js +++ b/UI/WebServerResources/js/Common/loc.filter.js @@ -1,7 +1,8 @@ /* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /** - * @type {angular.Module} + * loc - A simple filter to return the localized version of a string. + * @memberof SOGo.Common */ (function () { 'use strict'; diff --git a/UI/WebServerResources/js/Common/range.filter.js b/UI/WebServerResources/js/Common/range.filter.js index 587a08f5b..a16a52439 100644 --- a/UI/WebServerResources/js/Common/range.filter.js +++ b/UI/WebServerResources/js/Common/range.filter.js @@ -1,7 +1,8 @@ /* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /** - * @type {angular.Module} + * range - A simple filter that will return an array of the size of its argument. + * @memberof SOGo.Common */ (function () { 'use strict'; @@ -9,7 +10,7 @@ function range() { return function(n) { var res = []; - for (var i = 0; i < n; i++) { + for (var i = 0; i < parseInt(n); i++) { res.push(i); } return res;