Issue 108: The modal windndow doesn't get closed
Status:  Fixed
Owner: ----
Closed:  Jan 2009
Reported by masquerade2ruslan, Nov 2, 2008
What steps will reproduce the problem?
1. The current situation emulates the case of passing values from modal
window into parent. After finishing work with modal i try to close it but
it's not get closed. The event hideContent is fired and value is passed.
Have i missed something or it's really broken? 

here is the example:    
$(function() {
  $('#manual').click(function(e) {
        e.preventDefault();
    
        $.nyroModalManual({
        url: 'popup.html',

        hideContent: function(elts, settings, callback) {
           var val = elts.full.find('#modalInput');
           $('#result').val(val.val());
           //$('#nyroModalFull').remove(); // if try to do this then the
second chance to open modal fails
           //$.nyroModalRemove();          // doesn't close the modal
	    }
    });

    return false;
  }); 

and html form
<a id="manual" href="#">Manual Call</a>
<input type="text" id="result" value="" />

Usings:
jQuery jquery-1.2.6.js
nyroModal jquery.nyroModal-1.3.0.js


popup.rar
60.0 KB   Download
Nov 2, 2008
#1 Mamali.S...@gmail.com
hideContent: function(elts, settings, callback)
just add callback(); in your hideContent statement to allow the return the code
Nov 3, 2008
#2 masquerade2ruslan
Great, now it works. I would like to know where I can find more about this because in
documentation it is not reflected. Is it felf explanatory of I've missed something ?
thx
Jan 27, 2009
Project Member #3 nyro...@gmail.com
http://nyromodal.nyrodev.com/#animationCallbacks
It's write that you have to call callback();
Status: Fixed