summaryrefslogtreecommitdiff
path: root/www/js/DataModel.js
diff options
context:
space:
mode:
authorpliablepixels <pliablepixels@gmail.com>2016-06-10 11:18:41 -0400
committerpliablepixels <pliablepixels@gmail.com>2016-06-10 11:18:41 -0400
commite36116ce30e14799310c12f6130927438b81a25f (patch)
tree356568f28e1045d9477cf7c507ae931ecd2b8bf0 /www/js/DataModel.js
parente7befe3843ca144ef0aa50c928a1f6f6c5dec39b (diff)
more language fixes
Former-commit-id: f8dd70bcc930d2ed936505d662d1cd06d2519404
Diffstat (limited to 'www/js/DataModel.js')
-rw-r--r--www/js/DataModel.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js
index 69ef8ba9..ab4326c9 100644
--- a/www/js/DataModel.js
+++ b/www/js/DataModel.js
@@ -28,7 +28,7 @@ angular.module('zmApp.controllers')
var languages = [
{text:'English', value:'en'},
- {text:'Italian', value:'it'},
+ {text:'Italian', value:'it'}
];
var serverGroupList={};
@@ -592,6 +592,7 @@ angular.module('zmApp.controllers')
setDefaultLanguage: function(l, permanent) {
+ if (!l) l='en';
var d = $q.defer();
if (permanent)
window.localStorage.setItem("defaultLang", l);