CC-3174 : showbuilder

removing unecessary things from the events.
This commit is contained in:
Naomi Aro 2012-02-02 23:31:32 +01:00
parent 6da4397a96
commit 7f9b497816
2 changed files with 11 additions and 34 deletions

View File

@ -7,30 +7,14 @@ function fnLibraryTableRowCallback( nRow, aData, iDisplayIndex, iDisplayIndexFul
[{get:"/Library/context-menu/format/json/id/#id#/type/#type#"}], [{get:"/Library/context-menu/format/json/id/#id#/type/#type#"}],
{id: aData["id"], type: aData["ftype"]}, {id: aData["id"], type: aData["ftype"]},
{xposition: "mouse", yposition: "mouse"}); {xposition: "mouse", yposition: "mouse"});
return nRow;
} }
function fnLibraryTableDrawCallback() { function fnLibraryTableDrawCallback() {
addLibraryItemEvents();
}
function addLibraryItemEvents() { $('#library_display tr[id ^= "au"]').draggable({
$('#library_display tr[id ^= "au"]')
.draggable({
helper: 'clone', helper: 'clone',
cursor: 'pointer' cursor: 'pointer'
}); });
/*
$('#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"});
*/
} }
/* /*

View File

@ -6,18 +6,11 @@ function fnLibraryTableRowCallback( nRow, aData, iDisplayIndex, iDisplayIndexFul
//save some info for reordering purposes. //save some info for reordering purposes.
jRow.data({"aData": aData}); jRow.data({"aData": aData});
return nRow;
} }
function fnLibraryTableDrawCallback() { function fnLibraryTableDrawCallback() {
addLibraryItemEvents();
}
function addLibraryItemEvents() { $('#library_display tr:not(:first)').draggable({
$('#library_display tr:not(:first)')
.draggable({
helper: 'clone', helper: 'clone',
cursor: 'pointer', cursor: 'pointer',
connectToSortable: '#show_builder_table' connectToSortable: '#show_builder_table'