CC-3174 : showbuilder
dragging into timeline is working need to replace jjmenus
This commit is contained in:
parent
8b93b98e24
commit
0199f572bd
7 changed files with 473 additions and 123 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue