Bugzilla – Attachment 191087 Details for
Bug 41564
Tidy kohaTable block - admin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41564: Tidy kohaTable - admin/branches.tt
139c727.patch (text/plain), 2.38 KB, created by
Jonathan Druart
on 2026-01-09 14:44:57 UTC
(
hide
)
Description:
Bug 41564: Tidy kohaTable - admin/branches.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-09 14:44:57 UTC
Size:
2.38 KB
patch
obsolete
>From 139c7275711dfef96cd91c478c1dceb1d344b272 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 10:55:14 +0100 >Subject: [PATCH] Bug 41564: Tidy kohaTable - admin/branches.tt > >--- > .../prog/en/modules/admin/branches.tt | 29 +++++++++++-------- > 1 file changed, 17 insertions(+), 12 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >index 0b1a3428d29..ef52fb79642 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >@@ -819,7 +819,9 @@ > <script> > var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'libraries', 'libraries', 'json' ) | $raw %]; > var calendarFirstDayOfWeek = '[% Koha.Preference('CalendarFirstDayOfWeek') | html %]'; >+ </script> > >+ <script> > var libraries_table; > $(document).ready(function() { > >@@ -982,18 +984,6 @@ > ], > bKohaColumnsUseNames: true, > }, table_settings); >- >- [% UNLESS library %] >- $("#Aform").on("submit", function( event ) { >- if ( $("#branchcode").val().match(/\s/) ) { >- event.preventDefault(); >- alert(_("The library code entered contains whitespace characters. Please remove any whitespace characters from the library code")); >- return false; >- } else { >- return true; >- } >- }); >- [% END %] > }); > > $( ".expand-textarea" ).on("click", function(e){ >@@ -1034,6 +1024,21 @@ > $( "#" + target ).hide(); > }); > </script> >+ >+ [% UNLESS library %] >+ <script> >+ $("#Aform").on("submit", function( event ) { >+ if ( $("#branchcode").val().match(/\s/) ) { >+ event.preventDefault(); >+ alert(_("The library code entered contains whitespace characters. Please remove any whitespace characters from the library code")); >+ return false; >+ } else { >+ return true; >+ } >+ }); >+ </script> >+ [% END %] >+ > [% END %] > > [% INCLUDE 'intranet-bottom.inc' %] >-- >2.43.0 >
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 41564
:
191082
|
191083
|
191084
|
191085
|
191086
|
191087
|
191088
|
191089
|
191090
|
191091
|
191092
|
191093
|
191094
|
191095
|
191096
|
191097
|
191098
|
191099
|
191100
|
191310
|
191311
|
191312
|
191313
|
191314
|
191315
|
191316
|
191317
|
191318
|
191319
|
191320
|
191321
|
191322
|
191323
|
191324
|
191325
|
191326
|
191327
|
191328
|
191329