minor changes

This commit is contained in:
rolux 2014-11-20 16:12:52 +00:00
parent 64b9cf48f8
commit 9d916d2d9f

View file

@ -3,7 +3,7 @@
'use strict'; 'use strict';
pandora.ui.entity = function(options, callback) { pandora.ui.entity = function(options, callback) {
// options: {id, view} // options: {id, view}, view: 'annotation' or 'entity'
pandora.api.getEntity({ pandora.api.getEntity({
id: options.id id: options.id
}, function(response) { }, function(response) {
@ -16,7 +16,7 @@ pandora.ui.entity = function(options, callback) {
return Ox.isEmpty(value) return Ox.isEmpty(value)
|| Ox.isNull(value) || Ox.isNull(value)
|| Ox.isUndefined(value) || Ox.isUndefined(value)
? Ox._(parts[1] || 'unknown') ? Ox._(parts[1] || '<span class="OxLight">unknown</a>')
: Ox.isArray(value) ? value.join('; ') : Ox.isArray(value) ? value.join('; ')
: value; : value;
}); });