Export to GitHub

nyromodal - issue #99

Using element and not the body for the nyroModal background lock


Posted on Oct 23, 2008 by Happy Giraffe

First of all I really like this plugin, and use it on all my applications. There is a feature that I tried to apply with no avail. Is it anyway to just block an element and not the whole page body? In code I change the statement var body = ‘body’; to var body = ‘another DOM’; but it still the whole page body is used as a background for the nyromodal windows.

Comment #1

Posted on Oct 25, 2008 by Swift Panda

For now, it's not possible. I'm currently investigate how I could implement this.

Comment #2

Posted on Dec 2, 2008 by Happy Dog

yes, sometimes I'd like to popup a modal with a position relative to a certain div, not the whole body, and I don't really want to install another plugin. so please add an option something like $.nyroModalSettings({relative-to: #mydiv}); btw, great plugin!

Comment #3

Posted on Jan 31, 2009 by Swift Panda

this feature will be implemented in the next release, coming soon (testing in progress)

Comment #4

Posted on Feb 11, 2009 by Swift Panda

the version 1.4.0 is now released and implement this feature.

Comment #5

Posted on Jan 7, 2013 by Quick Cat

Hi there I'm struggling to find the documentation that for this feature... can you please post an example of usage?

Status: Fixed

Labels:
Type-Enhancement Priority-Medium