Replies
Hi Ravi,
Thank you for the reply.
I forget to mention that we are created the page trought the magnific popu in ajax mode, and i’ve add to the create.php these lines:
jQuery(“#mpp-gallery-create-form”).submit(function(event){
event.preventDefault();
var $form = jQuery(this);
var $inputs = $form.find(“input, select, button, textarea”);
var serializedData = $form.serialize();
$inputs.prop(“disabled”, true);request = jQuery.ajax({
url: “create.php”,
type: “post”,
data: serializedData
});request.done(function (response, textStatus, jqXHR){
console.log(“Gallery created!”);
});request.always(function () {
$inputs.prop(“disabled”, false);
});});
What I should put in the request.done to redirect to the gallery created?
Thank you in advance.Kind regards,
jkk