Skip to content

Commit 52cdbfa

Browse files
committed
Merge branch 'release/8.3.0'
* release/8.3.0: Final commit of version 8.3.0 Add new option disableFormWhenSubmitting
2 parents bbcb079 + 837f7ca commit 52cdbfa

13 files changed

Lines changed: 303 additions & 252 deletions

.vscode/settings.json

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,5 @@
22
"editor.tabSize": 2,
33
"files.trimTrailingWhitespace": true,
44
"editor.defaultFormatter": "esbenp.prettier-vscode",
5-
"prettier.configPath": "./prettier.config.cjs",
6-
"cSpell.words": [
7-
"ABSPATH",
8-
"apachectl",
9-
"autoloader",
10-
"binarykitchen",
11-
"bytediff",
12-
"corejs",
13-
"cssnano",
14-
"gulpfile",
15-
"kbjohnson",
16-
"litespeed",
17-
"Metaboxes",
18-
"softprops",
19-
"styl",
20-
"Videomail"
21-
]
5+
"prettier.configPath": "./prettier.config.cjs"
226
}

dist/videomail-for-ninja-forms.zip

931 Bytes
Binary file not shown.

package-lock.json

Lines changed: 37 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "videomail-for-ninja-forms",
3-
"version": "8.2.0",
3+
"version": "8.3.0",
44
"description": "With this add-on recording videos in Wordpress Ninja Forms comes true.",
55
"author": "Michael Heuberger <michael.heuberger@binarykitchen.com>",
66
"contributors": [
@@ -58,7 +58,7 @@
5858
]
5959
},
6060
"dependencies": {
61-
"videomail-client": "11.4.9"
61+
"videomail-client": "11.5.2"
6262
},
6363
"devDependencies": {
6464
"@babel/core": "7.28.4",

readme.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: video, email, recorder, sign language
55

66
Requires at least: 6.0
77
Tested up to: 6.8.2
8-
Stable tag: 8.2.0
8+
Stable tag: 8.3.0
99
Requires PHP: 8.1.0
1010
Donate link: https://videomail.io/faq
1111
License: CC0-1.0
@@ -70,6 +70,16 @@ To get help, just use any of these contacts at [https://binarykitchen.com](https
7070
2. Once you have assembled a form and preview it, any browser will ask for webcam access first.
7171

7272
== Changelog ==
73+
= 8.3.0 (17 Oct 2025) =
74+
**Improvement**
75+
* Adds new advanced option "disableFormWhenSubmitting" to increase security during form submissions
76+
77+
**Change:**
78+
* Defaults that new option "disableFormWhenSubmitting" to false, because plugins overlap with each other.
79+
80+
**Chore**
81+
* Upgrade VC dependency
82+
7383
= 8.2.0 (8 Oct 2025) =
7484
**Fix**
7585
* Exclude videomail-client from LiteSpeed

src/js/main.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Remember, you can't use any import/require statements here
2-
const PLUGIN_VERSION = "8.2.0";
2+
const PLUGIN_VERSION = "8.3.0";
33

44
// manual switch to have more stuff printed to console
55
let DEBUG = false;
@@ -100,13 +100,15 @@ const VideomailFieldController = Marionette.Object.extend({
100100
},
101101
selectors: { containerId: "videomail", submitButtonSelector: ".submit-wrap input" },
102102
callbacks: {
103-
// ugly name eh?
104103
adjustFormDataBeforePosting:
105104
this.adjustFormDataBeforePostingToVideomailServer.bind(this),
106105
},
106+
107107
// when true, user media is loaded only when record button is pressed
108108
loadUserMediaOnRecord: this.fieldModel.get("load_user_media_on_record"),
109109

110+
disableFormWhenSubmitting: this.fieldModel.get("disable_form_when_submitting"),
111+
110112
// leave it to ninja form to validate the inputs
111113
enableAutoValidation: false,
112114

src/php/config/videomail-field-settings.php

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
'label' => __('Enable Audio (in Beta)', 'videomail-for-ninja-forms'),
1919
'width' => 'one-half',
2020
'group' => 'primary',
21-
'value' => TRUE,
21+
'value' => true,
2222
'help' => __('The audio feature is in beta and needs feedback for improvement. Otherwise leave it disabled and stick to Sign Language, grins')
2323
),
2424

@@ -40,7 +40,7 @@
4040
'placeholder' => __('Email address or search for a field', 'videomail-for-ninja-forms'),
4141
'value' => '',
4242
'width' => 'full',
43-
'use_merge_tags' => TRUE
43+
'use_merge_tags' => true
4444
),
4545

4646
'email_to' => array(
@@ -51,7 +51,7 @@
5151
'placeholder' => __('Email address or search for a field', 'videomail-for-ninja-forms'),
5252
'value' => '',
5353
'width' => 'full',
54-
'use_merge_tags' => TRUE
54+
'use_merge_tags' => true
5555
),
5656

5757
'email_subject' => array(
@@ -62,7 +62,7 @@
6262
'placeholder' => __('Subject Text or search for a field', 'videomail-for-ninja-forms'),
6363
'value' => '',
6464
'width' => 'full',
65-
'use_merge_tags' => TRUE
65+
'use_merge_tags' => true
6666
),
6767

6868
'email_body' => array(
@@ -73,7 +73,7 @@
7373
'placeholder' => __('Body Text or search for a field', 'videomail-for-ninja-forms'),
7474
'value' => '',
7575
'width' => 'full',
76-
'use_merge_tags' => TRUE
76+
'use_merge_tags' => true
7777
),
7878

7979
'limit_seconds' => array(
@@ -119,7 +119,7 @@
119119
'label' => __('Stretch', 'videomail-for-ninja-forms'),
120120
'width' => 'one-half',
121121
'group' => 'display',
122-
'value' => FALSE,
122+
'value' => false,
123123
'help' => __('Stretch video to full width of the parent container.', 'videomail-for-ninja-forms')
124124
),
125125

@@ -129,7 +129,7 @@
129129
'label' => __('Debug Mode', 'videomail-for-ninja-forms'),
130130
'width' => 'one-half',
131131
'group' => 'advanced',
132-
'value' => FALSE,
132+
'value' => false,
133133
'help' => __('Show verbose comments in the developer console.', 'videomail-for-ninja-forms')
134134
),
135135

@@ -139,7 +139,17 @@
139139
'label' => __('Ask for camera permission on record (fallback, not recommended)', 'videomail-for-ninja-forms'),
140140
'width' => 'one-half',
141141
'group' => 'advanced',
142-
'value' => FALSE,
142+
'value' => false,
143143
'help' => __('With this option enabled, the user will not be asked for camera permissions unless the record button is clicked. When disabled (default), permissions are being asked on page load which is preferred. This option is only for when the there is a conflict with the application when already many other events occur on page load.', 'videomail-for-ninja-forms')
144144
)
145+
146+
'disable_form_when_submitting' => array(
147+
'name' => 'disable_form_when_submitting',
148+
'type' => 'toggle',
149+
'label' => __('Disable form inputs once submitted', 'videomail-for-ninja-forms'),
150+
'width' => 'one-half',
151+
'group' => 'advanced',
152+
'value' => false,
153+
'help' => __('With this option enabled, all form inputs become disabled once submitted and cannot be changed which the ideal during any submissions. Unfortunately WordPress plugins can overlap with each other the submit button, hence it is disabled by default. Only enable if you are sure and have fully tested it.', 'videomail-for-ninja-forms')
154+
)
145155
));

src/php/videomail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
final class NF_Videomail {
33

44
const NAME = 'Videomail';
5-
const VERSION = '8.2.0';
5+
const VERSION = '8.3.0';
66
const AUTHOR = 'Michael Heuberger + Kyle B. Johnson';
77
const SLUG = 'videomail';
88
const PREFIX = 'NF_Videomail';

target/js/main-min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)