PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.15
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.15
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
weforms / assets / js / wpuf-form-builder-contact-forms.js

wpuf-form-builder-contact-forms.js in weForms – Easy Drag & Drop Contact Form Builder For WordPress 1.6.15, at assets/js/wpuf-form-builder-contact-forms.js

56 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 'use strict';
2
3 ;(function ($) {
4 'use strict';
5
6 /**
7 * Only proceed if current page is a 'Profile Forms' form builder page
8 */
9
10 if (!$('#wpuf-form-builder.wpuf-form-builder-contact_form').length) {
11 // return;
12 }
13
14 window.weforms_mixin_builder_root = {
15 data: function data() {
16 return {
17 validation_error_msg: wpuf_form_builder.i18n.email_needed
18 };
19 },
20
21 methods: {
22 // wpuf_profile must have 'user_email'
23 // field template
24 validate_form_before_submit: function validate_form_before_submit() {
25 return true;
26 }
27 }
28 };
29
30 window.weforms_mixin_builder_stage = {
31
32 computed: {
33 settings: function settings() {
34 return this.$store.state.settings;
35 },
36
37 label_type: function label_type() {
38 return this.$store.state.settings.label_position;
39 },
40
41 use_theme_css: function use_theme_css() {
42 return this.$store.state.settings.use_theme_css;
43 }
44 },
45
46 mounted: function mounted() {
47 var self = this;
48
49 // $('.wpuf-input-datetime').datetimepicker({
50 // dateFormat: 'yy-mm-dd',
51 // timeFormat: "HH:mm:ss"
52 // });
53 }
54 };
55 })(jQuery);
56