aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/edit/Devices.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-28 08:58:54 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-28 08:58:54 +0500
commita7bfd5431b73b5d634b769e64483e81815364bca (patch)
treefb5d5f35d0c7fc3510f02137def18a27be4d23e4 /web/app/view/edit/Devices.js
parent352159c53b862a78cead3c1447d14eca28bd9c58 (diff)
downloadetbsa-traccar-web-a7bfd5431b73b5d634b769e64483e81815364bca.tar.gz
etbsa-traccar-web-a7bfd5431b73b5d634b769e64483e81815364bca.tar.bz2
etbsa-traccar-web-a7bfd5431b73b5d634b769e64483e81815364bca.zip
Do not show geofenceId if it is unknown
Diffstat (limited to 'web/app/view/edit/Devices.js')
-rw-r--r--web/app/view/edit/Devices.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/app/view/edit/Devices.js b/web/app/view/edit/Devices.js
index d5e6d5f..eda8bbd 100644
--- a/web/app/view/edit/Devices.js
+++ b/web/app/view/edit/Devices.js
@@ -160,11 +160,11 @@ Ext.define('Traccar.view.edit.Devices', {
store: 'Geofences'
},
renderer: function (value) {
- var i, result = '';
+ var i, name, result = '';
if (Ext.isArray(value)) {
for (i = 0; i < value.length; i++) {
- result += Traccar.AttributeFormatter.geofenceIdFormatter(value[i]);
- result += (i < value.length - 1) ? ', ' : '';
+ name = Traccar.AttributeFormatter.geofenceIdFormatter(value[i]);
+ result += name ? name + ((i < value.length - 1) ? ', ' : '') : '';
}
}
return result;