From df324f8efa66e9a50eb3815c3d46cee5e231d276 Mon Sep 17 00:00:00 2001
From: j <0x006A@0x2620.org>
Date: Tue, 26 Oct 2010 12:24:58 +0200
Subject: [PATCH] do not hardcode url, use '' if cell data is undefined
---
build/js/ox.ui.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js
index 2db24061..7bd50105 100644
--- a/build/js/ox.ui.js
+++ b/build/js/ox.ui.js
@@ -6973,12 +6973,13 @@ requires
});
$.each(self.visibleColumns, function(i, v) {
var $cell = $('
')
+
.addClass('OxCell OxColumn' + Ox.toTitleCase(v.id))
.css({
width: (self.columnWidths[i] - 9) + 'px',
textAlign: v.align
})
- .html(!$.isEmptyObject(data) ? data[v.id] : '')
+ .html(!$.isEmptyObject(data) && data[v.id] ? data[v.id] : '')
.appendTo($item);
});
return $item;
@@ -7422,7 +7423,7 @@ requires
self.map.fitBounds(location.rectangle.bounds);
}
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 {
add: function() {
@@ -10358,4 +10359,4 @@ requires
};
-})();
\ No newline at end of file
+})();