aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/State.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-11-08 15:04:43 +0500
committerAbyss777 <abyss@fox5.ru>2017-11-13 12:33:27 +0500
commitd93e45e176fc2cbba6525f100ef084d904baa1c1 (patch)
tree4b704e487600bda6c1604e39c1c1719962808525 /web/app/view/State.js
parentb36bb685ff31b06c7f50e660aebd3a69db5de5d7 (diff)
downloadtrackermap-web-d93e45e176fc2cbba6525f100ef084d904baa1c1.tar.gz
trackermap-web-d93e45e176fc2cbba6525f100ef084d904baa1c1.tar.bz2
trackermap-web-d93e45e176fc2cbba6525f100ef084d904baa1c1.zip
Implement geocoding retry
Diffstat (limited to 'web/app/view/State.js')
-rw-r--r--web/app/view/State.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/app/view/State.js b/web/app/view/State.js
index 32f95861..d4c56d79 100644
--- a/web/app/view/State.js
+++ b/web/app/view/State.js
@@ -63,6 +63,9 @@ Ext.define('Traccar.view.State', {
renderer: function (value, metaData, record) {
if (record.get('attribute') === 'alarm') {
metaData.tdCls = 'view-color-red';
+ } else if (record.get('name') === Strings.positionAddress && !value) {
+ return '<a href="#" onclick="Ext.fireEvent(\'stategeocode\')" >' +
+ Strings.stateShowAddress + '</a>';
}
return value;
}