From 83de9ac32c3bc5015429b60b208e352c7b6e0aeb Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 3 Feb 2022 22:31:19 +0000 Subject: [PATCH] Bug 22659: Add save and continue button to additional-contents.tt To test: 1. Apply patch and restart everything 2. Go to Tools > News and create some new additional content. 3. Notice a Save and continue button 4. Try saving and contining. 5. Make sure if you are using the CodeMirror editor that you are still in the CodeMirror editor 6. Try 2 - 5 again but with the wysiwyg editor, make sure when you save and continue you remain in the wysiwyg editor. 7. If you are saving and contining from News make sure you remain in News, when you are saving and contining from HTML customizations make sure you remain there. 8. Turn on the NewsLog system preference 9. With the NewsLog on make sure your content is being logged correctly when you sabe and continue. Signed-off-by: Sally Signed-off-by: Sally --- .../prog/en/modules/tools/additional-contents.tt | 15 +++++++++++++++ tools/additional-contents.pl | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt index 62f8c5febb..36b5f93447 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt @@ -171,6 +171,12 @@
+ +
[% IF category == 'news' %] Cancel @@ -183,6 +189,8 @@ + +
  1. @@ -452,6 +460,13 @@ [% INCLUDE 'calendar.inc' %] [% Asset.js("js/tools-menu.js") | $raw %] [% Asset.js("lib/hc-sticky.js") | $raw %] + [% IF additional_contents.count %] [% INCLUDE 'datatables.inc' %]