aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/app/store/AlarmTypes.js6
-rw-r--r--web/app/view/edit/Notifications.js2
2 files changed, 4 insertions, 4 deletions
diff --git a/web/app/store/AlarmTypes.js b/web/app/store/AlarmTypes.js
index 9520359f..1ee7ffe8 100644
--- a/web/app/store/AlarmTypes.js
+++ b/web/app/store/AlarmTypes.js
@@ -19,8 +19,8 @@ Ext.define('Traccar.store.AlarmTypes', {
extend: 'Ext.data.Store',
fields: ['key', 'name'],
- data: function () {
- var items = [];
+ data: (function () {
+ var key, items = [];
for (key in Strings) {
if (Strings.hasOwnProperty(key) && key.lastIndexOf('alarm', 0) === 0) {
items.push({
@@ -30,5 +30,5 @@ Ext.define('Traccar.store.AlarmTypes', {
}
}
return items;
- }()
+ })()
});
diff --git a/web/app/view/edit/Notifications.js b/web/app/view/edit/Notifications.js
index 7983c4db..9cf97b19 100644
--- a/web/app/view/edit/Notifications.js
+++ b/web/app/view/edit/Notifications.js
@@ -67,7 +67,7 @@ Ext.define('Traccar.view.edit.Notifications', {
if (alarms) {
alarms = alarms.split(',');
for (i = 0; i < alarms.length; i++) {
- var key = 'alarm' + alarms[i].charAt(0).toUpperCase() + alarms[i].slice(1);
+ key = 'alarm' + alarms[i].charAt(0).toUpperCase() + alarms[i].slice(1);
if (result) {
result += ', ';
}