Bugzilla – Attachment 146340 Details for
Bug 32813
Fix cataloguing/value_builder/barcode.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32813: Fix cataloguing/value_builder/barcode.pl
Bug-32813-Fix-cataloguingvaluebuilderbarcodepl.patch (text/plain), 1.18 KB, created by
Owen Leonard
on 2023-02-07 16:10:06 UTC
(
hide
)
Description:
Bug 32813: Fix cataloguing/value_builder/barcode.pl
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2023-02-07 16:10:06 UTC
Size:
1.18 KB
patch
obsolete
>From d211481ab314d88e90d7e52b84c03a33a8df4d4a Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Fri, 3 Feb 2023 11:58:50 +0100 >Subject: [PATCH] Bug 32813: Fix cataloguing/value_builder/barcode.pl > >Use event parameter instead of id. > >This is part of the refactoring happening in bug 30975 > >Test plan: >1. Verify that the plugin continues to work as before > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > cataloguing/value_builder/barcode.pl | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > >diff --git a/cataloguing/value_builder/barcode.pl b/cataloguing/value_builder/barcode.pl >index e5a0966a63..bd4a927ef1 100755 >--- a/cataloguing/value_builder/barcode.pl >+++ b/cataloguing/value_builder/barcode.pl >@@ -86,14 +86,16 @@ END_OF_JS > > my $js = <<END_OF_JS; > <script> >- >-function Focus$function_name(id, force) { >+function set_barcode(id, force) { > $scr > } > >-function Click$function_name(id) { >- Focus$function_name(id, 1); >- return false; >+function Focus$function_name(event) { >+ set_barcode(event.data.id, false); >+} >+ >+function Click$function_name(event) { >+ set_barcode(event.data.id, true); > } > </script> > END_OF_JS >-- >2.20.1
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 32813
:
146071
|
146340
|
146354
|
146722