fix issues in infoView

This commit is contained in:
Rolux 2016-01-05 13:16:17 +05:30
parent a350831792
commit 6df4d540a3

View file

@ -519,9 +519,11 @@ oml.ui.infoView = function(identifyData) {
clickLink: oml.clickLink, clickLink: oml.clickLink,
editable: isEditable, editable: isEditable,
format: function(value) { format: function(value) {
return formatValue(value.split('; '), key) return key == 'place'
? formatValue(value.split('; '), key)
: value
}, },
placeholder: formatLight('unknown'), placeholder: formatLight(Ox._('unknown')),
tooltip: isEditable ? oml.getEditTooltip() : '', tooltip: isEditable ? oml.getEditTooltip() : '',
value: key == 'place' value: key == 'place'
? (data[key] ? data[key].join('; ') : ['']) ? (data[key] ? data[key].join('; ') : [''])