Merge branch 'devel' of dev.sourcefabric.org:airtime into devel

This commit is contained in:
denise 2012-08-02 17:17:52 -04:00
commit d18acfdc75
2 changed files with 5 additions and 2 deletions

View File

@ -279,7 +279,7 @@ EOT;
if ($modifier == "minutes") {
$length = "00:".$value.":00";
} else if ($modifier == "hours") {
$length = $value."00:00";
$length = $value.":00:00";
}
}
return $length;

View File

@ -366,8 +366,11 @@ var AIRTIME = (function(AIRTIME){
var isStatic = data.isStatic;
delete data.type;
if (isStatic) {
console.log(data);
$.each(data, function(index, ele){
$html += "<div>"+ele.track_title+" "+ele.creator+" "+ele.length+"</div>";
if (ele.track_title !== undefined) {
$html += "<div>"+ele.track_title+" "+ele.creator+" "+ele.length+"</div>";
}
})
} else {
for (var key in data.crit){