CC-4155: Playlist Builder: Style static/dynamic expansion blocks in playlist contents

-changed null values to empty strings
This commit is contained in:
denise 2012-09-19 11:05:17 -04:00
parent 281e7d1092
commit dc95ab1d00
1 changed files with 6 additions and 0 deletions

View File

@ -428,6 +428,12 @@ var AIRTIME = (function(AIRTIME){
if (isStatic) {
$.each(data, function(index, ele){
if (ele.track_title !== undefined) {
if (ele.creator === null) {
ele.creator = "";
}
if (ele.track_title === null) {
ele.track_title = "";
}
$html += "<li>" +
"<span class='block-item-title'>"+ele.track_title+" - </span>" +
"<span class='block-item-author'>"+ele.creator+"</span>" +