]> _ Git - cubist_cms-back.git/commitdiff
wait #4659 @3
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 30 Aug 2021 17:12:17 +0000 (19:12 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 30 Aug 2021 17:12:17 +0000 (19:12 +0200)
src/resources/views/form/shortcuts.blade.php

index 54b289f8e7a0b3dd7658eee1660762633d91c661..2d8d5327c6159b4864a3c9f83d605b6c835da231 100644 (file)
             @push('after_scripts')
                 <script>
                     (function ($) {
+
                         $(function () {
                             $("#saveActions .btn-form-cancel").remove();
                             $("#saveActions").insertBefore('#form_shortcuts');
+
+                            $("#saveActions [type=\"submit\"]").on('click', function () {
+                                $(this).closest('main').find('form').submit();
+                                return false;
+                            });
                         });
                     })(jQuery);
                 </script>