Issue 285: When nyroModalManual is triggered to loads DOM it only can open DOM once, second attempt and it fails.
Status:  WontFix
Owner: ----
Closed:  Jul 2009
Reported by spoonja...@gmail.com, Jul 17, 2009
What steps will reproduce the problem?

1 - setup
$('#inputbutton').click(function() {
   $.nyroModalManual({
     content: $('#any_div_here').contents()                            
   });
});

<input type="button" id="inputbutton"/>
<div id="any_div_here">text and other things in here</div>

2. - usage
It will load the content first time but when you close and try again it
cannot load DOM. Have to refresh the page tin order to get it working again.

What is the expected output? What do you see instead?
- It should work everytime and not just first time. Is the input button
type the issue??

What version of the product are you using? On what operating system?
- 1.5.0 on IE7, not tested on FF 

Jul 17, 2009
#1 spoonja...@gmail.com
Error seems to arise from this section of the code (line 512)

...
} else if (currentSettings.content) {
        // Raw content not from a DOM element
        debug('Content: ' + currentSettings.type);
        setCurrentSettings({ type: 'manual' });
        initModal();
        modal.tmp.html($('<div/>').html(currentSettings.content).contents());
        if (modal.tmp.html())
            modal.dataReady = true;
        else
            loadingError();
        showModal();
    } else {
        // What should we show here? nothing happen
    }
...

Jul 17, 2009
Project Member #2 nyro...@gmail.com
Try this code:
$('#inputbutton').click(function() {
   $.nyroModalManual({
     url: '#any_div_here'
   });
});

With that, you'll use the nyroModal featutre to load DOM content and everything
should be ok.

Please let me know if it's working.

Jul 17, 2009
#3 spoonja...@gmail.com
Yep that worked!!

Thanks.
Jul 17, 2009
Project Member #4 nyro...@gmail.com
great.
Status: WontFix
Jul 17, 2009
#5 spoonja...@gmail.com
Would be helpful to others to add it to the examples.
Thanks again.
Great plugin.
Jul 17, 2009
Project Member #6 nyro...@gmail.com
yes. I created this week a wiki where I'm putting all question posted in the issue
tracker.