Thank you Guys.
I got it to work now with following Code, maybe it helps somebody out
there with a similar NyroModal Problem:
Does not work( Removes the Modal but still does not fire the Submit() )
("#form-config-content-make").submit(function()
{
top.$.nyroModalRemove();
return true;
})
> $(".form-config-content-make-button").click(function() {
> $("#form-config-content-make").submit(top.$.nyroModalRemove());
>
> });
That's not a "callback" function, it's a "call me right now" function
because you've included the paretheses.
It may be better to observe form's submit event instead of the buttons. This
fires the event no matter how the form was submitted (for example, press
"enter" when an input field is focused).
("#form-config-content-make").submit(function()
{
top.$.nyroModalRemove();
return true; // submits t
3 matches
Mail list logo