jQuery((function(t){t(".action-edit-width-sppb").on("click",(function(e){e.preventDefault();var i={title:t(this).data("title"),extension:"com_spsimpleportfolio",extension_view:"item",view_id:t(this).data("id")};t.ajax({url:"index.php?option=com_sppagebuilder&task=page.createNew",type:"POST",data:i,success:function(e){var i=t.parseJSON(e);i.status&&(t(this).removeClass("action-edit-width-sppb").attr("href",i.url),window.location.href=i.url)}})}))}));