You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want handle the submit event into dialog, then define message as a function.
message: function(dialog) {
var $message = $('<div />');
var complete = function(){
$message.on('submit', 'form[data-ajax="dialog"]', function(event){
-- Do your own Ajax Request --
dialog.close();
});
});
//Load your form from URL
$message.load("http://example.com/form.html", null, complete);
return $message;
},
I put js function to submit form in button attribute "action" but couldn't get it worked.
Something like: (note form is not rendered inside dialog)
However I could call
$('#form').submit()
in chrome console and it got executed correctly.The text was updated successfully, but these errors were encountered: