Skip to content

Conversation

@eivindga
Copy link

Use case:

  • in applications where you have to calculate a dynamic zIndex, it would be nice to be able to provide a function for calculating the zIndex.

For instance if the click target has zIndex 1, and a jquery dialog right below has zIndex 347 (just some variable number), you would like to have the context menu displayed in front of the dialog.

@bbrala
Copy link
Member

bbrala commented Dec 20, 2015

Thanks for the contribution, the code seems fine. I'll build the dist for you. Also, it seems you committed the file with a change to the access bits (src/jquery.contextMenu.js 100644 → 100755), i'll fix that too.

bbrala added a commit that referenced this pull request Dec 20, 2015
Added support for providing a function as zIndex value in options object (thanks @eivindga)
@bbrala bbrala merged commit 51db735 into swisnl:master Dec 20, 2015
@bbrala
Copy link
Member

bbrala commented Dec 20, 2015

I also changed the argument so it gets the same arguments as other callbacks. :)

@eivindga
Copy link
Author

Great! :)
And sorry for the access bit changes, guess that was just something Windows thought was a bright idea...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants