Patched Context Menu, to include also the object wich has the ContextMenu binding
This commit is contained in:
1 parent
3f14fdb51b
commit
232dbe5459
1 file changed
+2
-4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user