google-code-export / nyromodal

Automatically exported from code.google.com/p/nyromodal
1 stars 1 forks source link

Can't close onsubmit #572

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Upload/crop image loads in nyromodal
2. Upload image, crop it, then hit submit button
3. Image is saved to db and on close parent image div updates. It all works 
fine except I need the modal window to close onsubmit instead of having to hit 
the close button.

What is the expected output? What do you see instead?
I tried onSubmit="parent.$.nyroModalRemove();, I've tried 
onSubmit="parent.$.nmTop().close();", I've added the class="nyroModalClose", 
I've even tried simple things like window.close(). I've tried substituting 
onSubmit with onclick, absolutely nothing seems to work. It's seems like such a 
simple thing yet it just won't close no matter what I try. It makes me want to 
hurt small kittens.

What version of the product are you using? On what operating system?
Latest version 2.0
jquery 1.4.4 in noconflict mode using $j as the substitute as everything else I 
have runs on jquery 1.5.1. 

Please provide any additional information below.
It's currently 5:56am and it's a brisk 53 degrees with clear skies. Also not 
sure if this matters or not but I'm wearing a white shirt and my coffee is 
getting cold.

Original issue reported on code.google.com by sfrais...@gmail.com on 19 May 2011 at 10:59

GoogleCodeExporter commented 9 years ago
Did you figure out this issue? I have something similar, open a nyroModal 
window edit some text submit form ajax, all good except I can't for the life of 
me get the window to close. Unless I pop up a message asking the user to click 
the close link..

Original comment by TysonSav...@gmail.com on 25 Jul 2011 at 8:12