PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 4.0.3
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v4.0.3
4.0.3 4.0.2 4.0.1 4.0.0 3.16.6 3.16.5 3.16.4 3.16.3 3.16.2 3.16.1 3.16.0 3.15.9 3.9.9 3.9.5 3.9.6 3.9.7 3.9.8 1.1.7 1.1.8 1.1.9 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 341 releases
profile-builder / assets / misc / divi / includes / modules / edit-profile / edit-profile.jsx

edit-profile.jsx in User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor 4.0.3, at assets/misc/divi/includes/modules/edit-profile/edit-profile.jsx

47 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 // External Dependencies
2 import React from "react";
3 import AjaxComponent from "./../base/AjaxComponent/AjaxComponent";
4
5 // Internal Dependencies
6 import "./style.css";
7
8 class EditProfile extends AjaxComponent {
9 static slug = "wppb_edit_profile";
10
11 _shouldReload(oldProps, newProps) {
12 return (
13 oldProps.form_name !== newProps.form_name ||
14 oldProps.redirect_url !== newProps.redirect_url ||
15 oldProps.toggle_ajax_validation !== newProps.toggle_ajax_validation
16 );
17 }
18
19 _reloadFormData(props) {
20 var formData = new FormData();
21
22 formData.append("action", "wppb_divi_extension_ajax");
23 formData.append("form_type", "epf");
24 formData.append("form_name", props.form_name);
25 formData.append("redirect_url", props.redirect_url);
26 formData.append("toggle_ajax_validation", props.toggle_ajax_validation);
27
28 return formData;
29 }
30
31 render() {
32 return super.render();
33 }
34
35 _render() {
36 // console.log("_render");
37 return (
38 <div
39 className="wppb-form-container"
40 dangerouslySetInnerHTML={{ __html: this.state.result }}
41 />
42 );
43 }
44 }
45
46 export default EditProfile;
47