CC-3174 : showbuilder

dragging into timeline is working
need to replace jjmenus
This commit is contained in:
Naomi Aro 2012-02-02 15:51:15 +01:00
parent 8b93b98e24
commit 0199f572bd
7 changed files with 473 additions and 123 deletions

View file

@ -1,6 +1,18 @@
function fnLibraryTableRowCallback( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
function test() {
alert("hi");
}
$(nRow).attr("id", aData["tr_id"]);
$(nRow).find('td')
.jjmenu("rightClick",
[{get:"/Library/context-menu/format/json/id/#id#/type/#type#"}],
{id: aData["id"], type: aData["ftype"]},
{xposition: "mouse", yposition: "mouse"});
//{title:"Menu Item 4 - Js function", action:{type:"fn",callback:function(){ alert('THIS IS THE TEST'); }
return nRow;
}

View file

@ -1,8 +1,11 @@
function fnLibraryTableRowCallback( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
$(nRow).attr("id", aData["tr_id"]);
var jRow = $(nRow);
jRow.attr("id", aData["tr_id"]);
jRow.addClass("lib-sb");
$(nRow).data("show_builder", {"id": aData["id"], "length": aData["length"]});
//save some info for reordering purposes.
jRow.data({"aData": aData});
return nRow;
}