Bugzilla – Attachment 191391 Details for
Bug 41570
Tidy kohaTable block - course_reserves
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41570: course_reserves - auto tidy
Bug-41570-coursereserves---auto-tidy.patch (text/plain), 3.60 KB, created by
Owen Leonard
on 2026-01-13 19:43:48 UTC
(
hide
)
Description:
Bug 41570: course_reserves - auto tidy
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-01-13 19:43:48 UTC
Size:
3.60 KB
patch
obsolete
>From 00c9d5495529a47320ef06b5d351d56ca25d59e9 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 9 Jan 2026 13:13:59 +0100 >Subject: [PATCH] Bug 41570: course_reserves - auto tidy > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../modules/course_reserves/course-details.tt | 24 +++++++++---------- > .../course_reserves/course-reserves.tt | 3 +-- > 2 files changed, 12 insertions(+), 15 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >index 7705cf1c048..93b5d06b5b0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt >@@ -368,17 +368,15 @@ > are_you_sure_no_item: [% I18N.t("Are you sure you want to delete this course?") | html %], > }; > </script> >- > <script> >- $(document).ready(function(){ >- >- $("#delete_course_button").on( 'click', function(e){ >+ $(document).ready(function () { >+ $("#delete_course_button").on("click", function (e) { > e.preventDefault(); >- $('#delete_course').submit(); >+ $("#delete_course").submit(); > }); >- $("#rm_items_button").on( 'click', function(e){ >+ $("#rm_items_button").on("click", function (e) { > e.preventDefault(); >- $('#rm_items').submit(); >+ $("#rm_items").submit(); > }); > > var rtable = $("#course_reserves_table").kohaTable( >@@ -389,19 +387,19 @@ > table_settings > ); > >- $("#course_reserves_table").on( 'click', " .delete_item", function(e){ >+ $("#course_reserves_table").on("click", " .delete_item", function (e) { > e.preventDefault(); >- if (confirmDelete(_("Are you sure you want to remove this item from the course?") )) { >- cr_id = $(this).data('cr-id'); >- $("#del_reserve_" + cr_id ).submit(); >+ if (confirmDelete(_("Are you sure you want to remove this item from the course?"))) { >+ cr_id = $(this).data("cr-id"); >+ $("#del_reserve_" + cr_id).submit(); > } > }); > >- $("#rm_items").click(function(){ >+ $("#rm_items").click(function () { > return confirmDelete(_("Are you sure you want to remove all items from the course?")); > }); > >- $("#delete_course").click(function(){ >+ $("#delete_course").click(function () { > return confirmDelete(course_reserves_size > 0 ? i18n.are_you_sure_items : i18n.are_you_sure_no_item); > }); > }); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt >index bf5b2a456b2..9e6a29e5e50 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt >@@ -97,9 +97,8 @@ > <script> > var table_settings = [% TablesSettings.GetTableSettings( 'coursereserves', 'courses', 'course_reserves_table', 'json' ) | $raw %]; > </script> >- > <script> >- $(document).ready(function() { >+ $(document).ready(function () { > var ctable = $("#course_reserves_table").kohaTable( > { > pagingType: "full", >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41570
:
191127
|
191128
|
191129
|
191389
|
191390
| 191391 |
191392