Patched Context Menu, to include also the object wich has the ContextMenu binding
This commit is contained in:
parent
3f14fdb51b
commit
232dbe5459
1 changed files with 2 additions and 4 deletions
|
|
@ -317,6 +317,7 @@ $(function() {
|
|||
|
||||
$(settings.menuSelector)
|
||||
.data("invokedOn", $(e.target))
|
||||
.data("contextParent", $(this))
|
||||
.show()
|
||||
.css({
|
||||
position: "absolute",
|
||||
|
|
@ -330,10 +331,7 @@ $(function() {
|
|||
|
||||
$(this).hide();
|
||||
|
||||
var $invokedOn = $(this).data("invokedOn");
|
||||
var $selectedMenu = $(e.target);
|
||||
|
||||
settings.menuSelected.call(this, $invokedOn, $selectedMenu);
|
||||
settings.menuSelected.call(this, $(this).data('invokedOn'), $(this).data('contextParent'), $(e.target));
|
||||
});
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue