From 7f8386821468b36672b6489d7a6798e2d309d315 Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 14 Feb 2011 10:46:52 -0500 Subject: [PATCH] -fix for bad merge conflict --- public/js/playlist/nowplayingdatagrid.js | 42 ------------------------ 1 file changed, 42 deletions(-) diff --git a/public/js/playlist/nowplayingdatagrid.js b/public/js/playlist/nowplayingdatagrid.js index d1d08fab2..98cd108bb 100644 --- a/public/js/playlist/nowplayingdatagrid.js +++ b/public/js/playlist/nowplayingdatagrid.js @@ -45,48 +45,6 @@ function notifySongStart(){ updateDataTable(); } - var columns = [{"sTitle": "type", "bVisible":false}, - {"sTitle":"Date"}, - {"sTitle":"Start"}, - {"sTitle":"End"}, - {"sTitle":"Duration"}, - {"sTitle":"Song"}, - {"sTitle":"Artist"}, - {"sTitle":"Album"}, - {"sTitle":"Playlist"}, - {"sTitle":"Show"}, - {"sTitle":"bgcolor", "bVisible":false}, - {"sTitle":"group_id", "bVisible":false}]; - -function createDataGrid(){ - - columns[1]["fnRender"] = getDateText; - columns[2]["fnRender"] = getTimeText; - columns[3]["fnRender"] = getTimeText; - columns[4]["fnRender"] = changeTimePrecisionInit; - - $('#demo').html( '
' ); - $('#nowplayingtable').dataTable( { - "bSort" : false, - "bJQueryUI": true, - "bFilter": false, - "bInfo": false, - "bLengthChange": false, - "bPaginate": false, - "aoColumns": columns, - "fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) { - if (aData[aData.length-2] == "t") - $(nRow).addClass("playing-list"); - if (aData[0] == "c") - $(nRow).attr("class", "playing-song"); - else if (aData[0] == "b") - $(nRow).attr("class", "gap"); - return nRow; - }, - "bAutoWidth":false - } ); - - function notifyShowStart(show){ currentShowInstanceID = show.instance_id; updateDataTable();