Combining treeview and contextmenu plugin...almost there.

Combining treeview and contextmenu plugin...almost there.

I'm using the "jQuery contextmenu plugin" combined with "jQuery
treeview async plugin". This means that I load in all data into the
treeview from the database. Next step is that I want to be able to
right click these dynamically loaded elements and alert the id of each
element. Everything works and I see the context menu on the dynamically created tree. The problem is when I click/choose an item in the contextmenu in Firefox nothing happens. However this works in IE. Can someone please advise??

jQuery(document).ready(function(){


jQuery("#black").treeview({
animated: "1",
url: "source.php",
persist: "cookie",
cookieid: "mtree"
});


jQuery('ul li').livequery(function() {
jQuery('span.folder, span.file').contextMenu('theContextMenu', {


bindings: {


'edit': function(t) {


editItem(t.id);


},


'email': function(t) {


alert('Trigger was '+t.id+'\nAction was Email');


},


'save': function(t) {


alert('Trigger was '+t.id+'\nAction was Save');


},


'delete': function(t) {


alert('Trigger was '+t.id+'\nAction was Delete');


}


}