|
@@ -32,7 +32,7 @@ if(!$contentData) {
|
|
|
|
|
|
$formID = rand(0, 100000);
|
|
$formID = rand(0, 100000);
|
|
?>
|
|
?>
|
|
-<div id="{{$key}}_{{ $formID }}">
|
|
|
|
|
|
+<div id="sochx_{{ $formID }}">
|
|
<input type="hidden" name="data" value="">
|
|
<input type="hidden" name="data" value="">
|
|
<div class="row">
|
|
<div class="row">
|
|
@for ($i = 0; $i < count($fields); $i++)
|
|
@for ($i = 0; $i < count($fields); $i++)
|
|
@@ -154,11 +154,16 @@ $formID = rand(0, 100000);
|
|
mounted: function () {
|
|
mounted: function () {
|
|
$('#sochx_{{ $formID }} [moe][initialized]').removeAttr('initialized');
|
|
$('#sochx_{{ $formID }} [moe][initialized]').removeAttr('initialized');
|
|
initMoes();
|
|
initMoes();
|
|
|
|
+ $('#sochx_{{ $formID }}').find('[name="data"]').val(JSON.stringify({
|
|
|
|
+ common: this.cleanObject(this.common),
|
|
|
|
+ customFields: this.customFields,
|
|
|
|
+ comments: this.comments,
|
|
|
|
+ }));
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
$data: {
|
|
$data: {
|
|
handler: function(val, oldVal) {
|
|
handler: function(val, oldVal) {
|
|
- $(this.$el).closest('form').find('[name="canvasData"]').val(JSON.stringify({
|
|
|
|
|
|
+ $('#sochx_{{ $formID }}').find('[name="data"]').val(JSON.stringify({
|
|
common: this.cleanObject(this.common),
|
|
common: this.cleanObject(this.common),
|
|
customFields: this.customFields,
|
|
customFields: this.customFields,
|
|
comments: this.comments,
|
|
comments: this.comments,
|