Skip to content

Commit

Permalink
Bind event to the method contextMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhodel authored and paulhodel committed Feb 2, 2019
1 parent 1a50046 commit 3521ebd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist/js/jquery.jexcel.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,10 +587,10 @@ var methods = {
contextMenuContent = '';
// Custom context menu
if (typeof($.fn.jexcel.defaults[$.fn.jexcel.current].contextMenu) == 'function') {
contextMenuContent = $.fn.jexcel.defaults[$.fn.jexcel.current].contextMenu(o[0], o[1]);
contextMenuContent = $.fn.jexcel.defaults[$.fn.jexcel.current].contextMenu(o[0], o[1], e);
} else {
// Default context menu for the columns
contextMenuContent = $.fn.jexcel('contextMenu', o[0], o[1]);
contextMenuContent = $.fn.jexcel('contextMenu', o[0], o[1], e);
}

// Show context menu
Expand Down Expand Up @@ -5105,7 +5105,7 @@ var methods = {
/**
* Default context menu
*/
contextMenu : function(type, number) {
contextMenu : function(type, number, e) {
var contextMenuContent = '';

if (type == 'col') {
Expand Down

0 comments on commit 3521ebd

Please sign in to comment.