CC-4900: Indicate in the library if a webstream is scheduled in the future or belongs to a playlist

-done
This commit is contained in:
denise 2013-01-30 16:53:59 -05:00
parent 4f5d7869d8
commit cf2ed25bfb
5 changed files with 71 additions and 61 deletions

View file

@ -580,16 +580,8 @@ var AIRTIME = (function(AIRTIME) {
$(nRow).find('td.library_type').html('<img title="'+$.i18n._("Webstream preview")+'" src="'+baseUrl+'css/images/icon_webstream.png">');
}
// add status icon
$status = $(nRow).find("td.library_status");
if (aData.status_scheduled_pl_bl !== null && aData.status_scheduled_pl_bl) {
$status.html('<span class="small-icon show-partial-filled track-sched-pl-bl"></span>');
}
if (aData.status_scheduled !== null && aData.status_scheduled) {
$status.html('<span class="small-icon show-partial-filled track-scheduled"></span>');
}
if (aData.status_pl_bl !== null && aData.status_pl_bl) {
$status.html('<span class="small-icon show-partial-filled track-pl-bl"></span>');
if (aData.status_in_use !== null && aData.status_in_use) {
$(nRow).find("td.library_status").html('<span class="small-icon media-item-in-use"></span>');
}
// add the play function to the library_type td
@ -641,9 +633,9 @@ var AIRTIME = (function(AIRTIME) {
return false;
});
$(nRow).find(".track-scheduled").qtip({
$(nRow).find(".media-item-in-use").qtip({
content: {
text: $.i18n._("This track is scheduled in the future")
text: aData.status_msg
},
hide: {
delay: 500,
@ -661,47 +653,7 @@ var AIRTIME = (function(AIRTIME) {
at: "right center"
},
});
$(nRow).find(".track-sched-pl-bl").qtip({
content: {
text: $.i18n._("This track is scheduled in the future and belongs to a playlist or smart block")
},
hide: {
delay: 500,
fixed: true
},
style: {
border: {
width: 0,
radius: 4
},
classes: "ui-tooltip-dark ui-tooltip-rounded"
},
position: {
my: "left bottom",
at: "right center"
},
});
$(nRow).find(".track-pl-bl").qtip({
content: {
text: $.i18n._("This track belongs to a playlist or smart block")
},
hide: {
delay: 500,
fixed: true
},
style: {
border: {
width: 0,
radius: 4
},
classes: "ui-tooltip-dark ui-tooltip-rounded"
},
position: {
my: "left bottom",
at: "right center"
},
});
// add a tool tip to appear when the user clicks on the type
// icon.
$(nRow).find("td:not(.library_checkbox, .library_type)").qtip({