do not hardcode url, use '' if cell data is undefined
This commit is contained in:
parent
88a4f838ac
commit
df324f8efa
1 changed files with 4 additions and 3 deletions
|
@ -6973,12 +6973,13 @@ requires
|
||||||
});
|
});
|
||||||
$.each(self.visibleColumns, function(i, v) {
|
$.each(self.visibleColumns, function(i, v) {
|
||||||
var $cell = $('<div>')
|
var $cell = $('<div>')
|
||||||
|
|
||||||
.addClass('OxCell OxColumn' + Ox.toTitleCase(v.id))
|
.addClass('OxCell OxColumn' + Ox.toTitleCase(v.id))
|
||||||
.css({
|
.css({
|
||||||
width: (self.columnWidths[i] - 9) + 'px',
|
width: (self.columnWidths[i] - 9) + 'px',
|
||||||
textAlign: v.align
|
textAlign: v.align
|
||||||
})
|
})
|
||||||
.html(!$.isEmptyObject(data) ? data[v.id] : '')
|
.html(!$.isEmptyObject(data) && data[v.id] ? data[v.id] : '')
|
||||||
.appendTo($item);
|
.appendTo($item);
|
||||||
});
|
});
|
||||||
return $item;
|
return $item;
|
||||||
|
@ -7422,7 +7423,7 @@ requires
|
||||||
self.map.fitBounds(location.rectangle.bounds);
|
self.map.fitBounds(location.rectangle.bounds);
|
||||||
}
|
}
|
||||||
function icon(color) {
|
function icon(color) {
|
||||||
return 'http://dev.pan.do:8000' + oxui.path + 'png/ox.ui/marker' + Ox.toTitleCase(color) + '.png'
|
return oxui.path + 'png/ox.ui/marker' + Ox.toTitleCase(color) + '.png'
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
add: function() {
|
add: function() {
|
||||||
|
|
Loading…
Reference in a new issue