Skip to content

Commit

Permalink
Update jstree-actions.js
Browse files Browse the repository at this point in the history
add original event to the onClick callback.
  • Loading branch information
mikila85 committed Jul 12, 2018
1 parent 3666c13 commit 2b7c24c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jstree-actions.js
Expand Up @@ -112,9 +112,9 @@
action_el.title = action.title;
}

action_el.onclick = function() {
action_el.onclick = function(e) {
var node = self.get_node(action_el);
action.callback(node_id, node, action_id, action_el);
action.callback(node_id, node, action_id, action_el, e);
};

return {
Expand Down

0 comments on commit 2b7c24c

Please sign in to comment.