The right menu on the right works with its functions. But the problem sometimes does not work properly. In my opinion, if you right-click on a table row, the checkbox is set correctly, but after I uncheck the box and try to check again by right-clicking, it does not work.
$('.check').bind("contextmenu", function (event) { event.preventDefault(); $(".custom-menu").finish().toggle(100).css({ top: event.pageY + "px", left: event.pageX + "px" }); }); $(document).bind("mousedown", function (e) { if (!$(e.target).parents(".custom-menu").length > 0) { $(".custom-menu").hide(100); } }); $('tr.check').contextmenu(function (e) { $cb = $(this).find('input[type="checkbox"].selected_check'); $($cb).attr('checked', 'checked'); populate_context_menu($cb); return false; });
source share