From 855d7ae75c54fe7695f78d9c6f422d5618af9e66 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 6 Apr 2025 22:40:03 +1000 Subject: [PATCH] Move entry-edit javascript out of architect theme --- .../layouts/partials/contentheader.blade.php | 17 +---------------- resources/views/frames/dn.blade.php | 9 +++++++++ 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/resources/themes/architect/views/layouts/partials/contentheader.blade.php b/resources/themes/architect/views/layouts/partials/contentheader.blade.php index a213a84f..9758beb3 100644 --- a/resources/themes/architect/views/layouts/partials/contentheader.blade.php +++ b/resources/themes/architect/views/layouts/partials/contentheader.blade.php @@ -17,19 +17,4 @@ @yield('page_actions') - - -@section('page-scripts') - -@append \ No newline at end of file + \ No newline at end of file diff --git a/resources/views/frames/dn.blade.php b/resources/views/frames/dn.blade.php index cdf59ed7..6cd68ba2 100644 --- a/resources/views/frames/dn.blade.php +++ b/resources/views/frames/dn.blade.php @@ -210,6 +210,15 @@ } $(document).ready(function() { + $('button[id=entry-edit]').on('click',function(item) { + item.preventDefault(); + + if ($(this).hasClass('btn-dark')) + return; + + editmode(); + }); + $('#newattr').on('change',function(item) { $.ajax({ type: 'POST',