|
@@ -9,7 +9,7 @@ if (!$contentData) {
|
|
|
$formID = rand(0, 100000);
|
|
|
|
|
|
?>
|
|
|
-<form method="POST" action="/process_form_submit" onsubmit="return submitForm_NoteSection_{{ $formID }}(this);">
|
|
|
+<form processed method="POST" action="/process_form_submit" onsubmit="return submitForm_NoteSection_{{ $formID }}(this);">
|
|
|
<?php if($section): ?>
|
|
|
<input type="hidden" name="section_uid" value="<?= $section->uid?>">
|
|
|
<?php else: ?>
|
|
@@ -805,26 +805,8 @@ $formID = rand(0, 100000);
|
|
|
</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="form-group m-0 d-flex">
|
|
|
- <button class="btn btn-sm btn-primary mr-2">Done</button>
|
|
|
- {{--<button class="btn btn-sm btn-default border" onclick="return cancelForm_NoteSection_{{ $formID }}(this)">Cancel</button>--}}
|
|
|
- </div>
|
|
|
</form>
|
|
|
<script>
|
|
|
- function submitForm_NoteSection_{{ $formID }}(_form) {
|
|
|
- showMask();
|
|
|
- $.post(_form.action, $(_form).serialize(), function (_data) {
|
|
|
- fastReload();
|
|
|
- });
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- function cancelForm_NoteSection_{{ $formID }}(_trigger) {
|
|
|
- $(_trigger).closest('.note-section').toggleClass('edit');
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
function onGemVChange_{{ $formID }}(_field) {
|
|
|
let name = _field.name, span = $('span[field="' + _field.name + '"]');
|
|
|
if (span.length) {
|