From 34436f037084c870a2513632a4957849d3d9dc9b Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Fri, 13 May 2022 14:04:43 +0300 Subject: [PATCH] Fix submit behavior when pressing enter and form contains the datepickers --- app/templates/layout/default.php | 30 +++++++++---------- .../datepicker/cm-datetimepicker.js | 2 +- .../components/datepicker/cm-timepicker.js | 4 +-- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/app/templates/layout/default.php b/app/templates/layout/default.php index a0b9cfafd..c33c83c12 100644 --- a/app/templates/layout/default.php +++ b/app/templates/layout/default.php @@ -40,7 +40,7 @@ - Html->meta('viewport', 'width=device-width, initial-scale=1.0') . "\n"; ?> + Html->meta('viewport', 'width=device-width, initial-scale=1.0') . PHP_EOL ?> Html->charset(); ?> <?= (!empty($vv_title) ? $vv_title : __('registry.meta.registry')); ?> @@ -52,7 +52,7 @@ ?> --> - Html->meta('favicon.ico', '/favicon.ico', array('type' => 'icon')) . "\n"; ?> + Html->meta('favicon.ico', '/favicon.ico', array('type' => 'icon')) . PHP_EOL ?> Html->css([ @@ -62,14 +62,14 @@ 'co-color', 'co-base', 'co-responsive' - ]) . "\n"; ?> + ]) . PHP_EOL ?> Html->script([ 'bootstrap/bootstrap.bundle.min.js', 'jquery/jquery.min.js', 'select2/select2.min.js' - ]) . "\n"; ?> + ]) . PHP_EOL ?> fetch('meta') ?> @@ -104,7 +104,7 @@
menu
@@ -122,7 +122,7 @@ ['escape' => false]); ?> - Html->link(__('registry.meta.registry'), '/'); ?> + Html->link(__('registry.meta.registry'), '/') ?> @@ -146,7 +146,7 @@ @@ -158,7 +158,7 @@ @@ -166,14 +166,14 @@ - fetch('content'); ?> + fetch('content') ?> @@ -190,10 +190,10 @@ class="toast-container" - element('dialog'); ?> + element('dialog') ?> - Html->script('jstimezonedetect/jstz.min.js'); ?> + Html->script('jstimezonedetect/jstz.min.js') ?>