@innovastudio/contentbox 1.6.97 → 1.6.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@innovastudio/contentbox",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.6.
|
4
|
+
"version": "1.6.99",
|
5
5
|
"description": "",
|
6
6
|
"main": "public/contentbox/contentbox.esm.js",
|
7
7
|
"types": "index.d.ts",
|
@@ -54,7 +54,7 @@
|
|
54
54
|
"ws": "^8.13.0"
|
55
55
|
},
|
56
56
|
"dependencies": {
|
57
|
-
"@innovastudio/contentbuilder": "^1.5.
|
57
|
+
"@innovastudio/contentbuilder": "^1.5.95",
|
58
58
|
"js-beautify": "^1.14.0",
|
59
59
|
"sortablejs": "^1.15.2"
|
60
60
|
}
|
@@ -27897,11 +27897,11 @@ const renderQuickAdd = builder => {
|
|
27897
27897
|
}
|
27898
27898
|
}
|
27899
27899
|
</div>
|
27900
|
-
<
|
27900
|
+
<div id="form_{id}" style="padding: 25px 0 20px">
|
27901
27901
|
<div id="{id}"></div>
|
27902
27902
|
|
27903
27903
|
<div id="status_{id}"></div>
|
27904
|
-
</
|
27904
|
+
</div>
|
27905
27905
|
|
27906
27906
|
<script>
|
27907
27907
|
var css = document.querySelector('#_style_{id}').innerHTML;
|
@@ -27981,8 +27981,6 @@ const renderQuickAdd = builder => {
|
|
27981
27981
|
const initialFormData = JSON.stringify(json);
|
27982
27982
|
viewer.view(initialFormData);
|
27983
27983
|
|
27984
|
-
const form = document.querySelector('#form_{id}');
|
27985
|
-
|
27986
27984
|
var statusInfo = document.querySelector('#status_{id}');
|
27987
27985
|
|
27988
27986
|
/*
|
@@ -28004,11 +28002,16 @@ const renderQuickAdd = builder => {
|
|
28004
28002
|
});
|
28005
28003
|
*/
|
28006
28004
|
|
28005
|
+
|
28007
28006
|
async function handleSubmit(event) {
|
28008
28007
|
event.preventDefault();
|
28008
|
+
|
28009
|
+
var form = event.target;
|
28010
|
+
form.action = '/formsubmission';
|
28011
|
+
form.method = 'POST';
|
28009
28012
|
|
28010
|
-
|
28011
|
-
|
28013
|
+
var btnSend = form.querySelector('.btn-submitform');
|
28014
|
+
|
28012
28015
|
btnSend.innerHTML = '<span class="loading-icon"><svg class="animate-spin" style="margin-right:7px;width:20px;height:20px" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg></span>Submit';
|
28013
28016
|
|
28014
28017
|
var data = new FormData(form);
|