sintonia/airtime_mvc/public/js/airtime/library/events/library_showbuilder.js
Naomi Aro b0c3bace1c CC-3174 : show builder
made sure the column reordering/visibility selection works with
modified show header/footer rows (their td spans the entire tr)
2012-01-26 15:21:04 +01:00

34 lines
No EOL
793 B
JavaScript

function fnLibraryTableRowCallback( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
$(nRow).attr("id", aData["id"]);
$(nRow).data("show_builder", {"id": aData["id"], "length": aData["length"]});
return nRow;
}
function fnLibraryTableDrawCallback() {
addLibraryItemEvents();
//addMetadataQtip();
//setupGroupActions();
}
function addLibraryItemEvents() {
$('#library_display tr')
.draggable({
helper: 'clone',
cursor: 'pointer',
connectToSortable: '#show_builder_table'
});
$('#library_display tbody tr td').not('[class=library_checkbox]')
.jjmenu("click",
[{get:"/Library/context-menu/format/json/id/#id#/type/#type#"}],
{id: getId, type: getType},
{xposition: "mouse", yposition: "mouse"});
}
function setupLibraryToolbar() {
}