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 / user-listing / user-listing.jsx

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

54 lines 1.5 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 UserListing extends AjaxComponent {
9 static slug = "wppb_userlisting";
10
11 _shouldReload(oldProps, newProps) {
12 return (
13 oldProps.userlisting_name !== newProps.userlisting_name ||
14 oldProps.toggle_single !== newProps.toggle_single ||
15 oldProps.single_id !== newProps.single_id ||
16 oldProps.field_name !== newProps.field_name ||
17 oldProps.meta_value !== newProps.meta_value ||
18 oldProps.include_id !== newProps.include_id ||
19 oldProps.exclude_id !== newProps.exclude_id
20 );
21 }
22
23 _reloadFormData(props) {
24 var formData = new FormData();
25
26 formData.append("action", "wppb_divi_extension_ajax");
27 formData.append("form_type", "ul");
28 formData.append("userlisting_name", props.userlisting_name);
29 formData.append("single", props.toggle_single);
30 formData.append("id", props.single_id);
31 formData.append("field_name", props.field_name);
32 formData.append("meta_value", props.meta_value);
33 formData.append("include", props.include_id);
34 formData.append("exclude", props.exclude_id);
35
36 return formData;
37 }
38
39 render() {
40 return super.render();
41 }
42
43 _render() {
44 return (
45 <div
46 className="wppb-form-container"
47 dangerouslySetInnerHTML={{ __html: this.state.result }}
48 />
49 );
50 }
51 }
52
53 export default UserListing;
54