summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rwxr-xr-x[-rw-r--r--]www/js/DataModel.js12
-rwxr-xr-x[-rw-r--r--]www/js/app.js19
2 files changed, 6 insertions, 25 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js
index 382f1f36..77e5ae9a 100644..100755
--- a/www/js/DataModel.js
+++ b/www/js/DataModel.js
@@ -46,6 +46,10 @@ angular.module('zmApp.controllers')
value: 'it'
},
{
+ text: 'Nederlands',
+ value: 'nl'
+ },
+ {
text: 'Polski',
value: 'pl'
},
@@ -144,7 +148,6 @@ angular.module('zmApp.controllers')
'fastLogin': true,
'followTimeLine': false,
'timelineScale': -1,
- 'hideArchived': false,
};
@@ -965,13 +968,6 @@ angular.module('zmApp.controllers')
}
- if (typeof loginData.hideArchived == 'undefined')
- {
-
- loginData.hideArchived = false;
-
- }
-
log("DataModel init recovered this loginData as " + JSON.stringify(loginData));
}
else
diff --git a/www/js/app.js b/www/js/app.js
index 4827af11..52b25185 100644..100755
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -102,22 +102,6 @@ angular.module('zmApp', [
})
-.filter ('eventListFilter', function(NVRDataModel)
-{
- return function (input) {
- var ld = NVRDataModel.getLogin();
- var out = [];
- angular.forEach (input, function (item)
- {
- if (item.Event.Archived == '0' || !ld.hideArchived) {
- out.push(item);
- }
- });
- return out;
- };
-
-})
-
// filter for montage iteration
.filter('onlyEnabled', function()
{
@@ -1986,7 +1970,7 @@ angular.module('zmApp', [
//$translateProvider.useLocalStorage();
- $translateProvider.registerAvailableLanguageKeys(['en', 'de', 'es', 'fr', 'it', 'ru', 'ja', 'ko', 'pl', 'zh', 'zh_CN', 'zh_TW', 'pt', 'ar', 'hi'],
+ $translateProvider.registerAvailableLanguageKeys(['en', 'de', 'es', 'fr', 'it', 'ru', 'ja', 'ko', 'nl', 'pl', 'zh', 'zh_CN', 'zh_TW', 'pt', 'ar', 'hi'],
{
'en_*': 'en',
'de_*': 'de',
@@ -1996,6 +1980,7 @@ angular.module('zmApp', [
'ru_*': 'ru',
'ja_*': 'ja',
'ko_*': 'ko',
+ 'nl_*': 'nl',
'pt_*': 'pt',
'pl_*': 'pl',
'ar_*': 'ar',