I'm using the "jQuery contextmenu plugin" ,I load in all data into the
contextmenu list. Next step is that I want to be able to
right click these dynamically loaded elements and show contextmenu popup of each
element. I get it working in windows(IE,chrome) and Mac(safari,chrome), but not in windows and mac latest firefox version 39.0.
Any ideas why it would not work in latest firefox?
Code: Select all
$('.table-files').find('tbody').contextMenu(options.tableFiles);
options.tableFiles = {
selector: 'tr',
build: function ($trigger, el) {
var array = createArray($trigger),
items = {};
items = {
itemAddToShare: {
type: 'button',
buttonClassName: 'button',
name: btnAddToShare,
disabled: true,
callback: function (key, options) {
}
},
itemView: {
icon: 'eye-open',
name: btnView,
disabled: true,
callback: function () {
}
}
};
for (var i = 0; i < array.length; i++) {
items[array[i]].disabled = false;
}
return !$.isEmptyObject(items) ? {
className: 'context-menu-dark',
items: items
} : false;
}
}
Note:Its working previous firefox version 38.0
Thanks,
jc