CC-84: Smart Playlists

- fixed bug on expanding block
- fixed text bug
This commit is contained in:
James 2012-08-02 17:02:24 -04:00
parent 028e089c82
commit af939469d3
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){