diff --git a/source/Ox.UI/js/List/Ox.List.js b/source/Ox.UI/js/List/Ox.List.js index 16bf871b..f5b7418d 100644 --- a/source/Ox.UI/js/List/Ox.List.js +++ b/source/Ox.UI/js/List/Ox.List.js @@ -1375,7 +1375,7 @@ Ox.List = function(options, self) { self.options.items.sort(function(a, b) { var aValue = sort[a.id], bValue = sort[b.id], - ret = 0 + ret = 0; if (aValue < bValue) { ret = operator == '+' ? -1 : 1; } else if (aValue > bValue) { diff --git a/source/Ox/js/Format.js b/source/Ox/js/Format.js index a1cebb65..334e87d3 100644 --- a/source/Ox/js/Format.js +++ b/source/Ox/js/Format.js @@ -122,6 +122,9 @@ Ox.formatDate Formats a date according to a format string Ox.formatDate = function(date, str, utc) { // fixme: date and utc are optional, date can be date, number or string + if (date == '') { + return ''; + } date = Ox.makeDate(date); var format = [ ['%', function() {return '%{%}';}], @@ -546,4 +549,4 @@ Ox.formatUnit Formats a number with a unit @*/ Ox.formatUnit = function(num, str) { return Ox.formatNumber(num, 3) + ' ' + str; -}; \ No newline at end of file +};