Bugzilla – Attachment 146344 Details for
Bug 32821
Fix cataloguing/value_builder/stocknumber.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32821: Fix cataloguing/value_builder/stocknumber.pl
Bug-32821-Fix-cataloguingvaluebuilderstocknumberpl.patch (text/plain), 1.26 KB, created by
Owen Leonard
on 2023-02-07 16:56:36 UTC
(
hide
)
Description:
Bug 32821: Fix cataloguing/value_builder/stocknumber.pl
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2023-02-07 16:56:36 UTC
Size:
1.26 KB
patch
obsolete
>From d5829b38c0d79aa7b27a36054c5e42a7b421dbb7 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Fri, 3 Feb 2023 11:58:51 +0100 >Subject: [PATCH] Bug 32821: Fix cataloguing/value_builder/stocknumber.pl > >Use event parameter > >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/stocknumber.pl | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > >diff --git a/cataloguing/value_builder/stocknumber.pl b/cataloguing/value_builder/stocknumber.pl >index 03dc79de06..39083e1b38 100755 >--- a/cataloguing/value_builder/stocknumber.pl >+++ b/cataloguing/value_builder/stocknumber.pl >@@ -39,15 +39,18 @@ my $builder = sub { > my $js = <<END_OF_JS; > <script> > >-function Focus$function_name(id, force) { >+function set_stocknumber(id, force) { > if (\$('#' + id).val() == '' || force) { > \$('#' + id).val('$nextnum'); > } > } > >+function Focus$function_name(event) { >+ set_stocknumber(event.data.id, false); >+} >+ > function Click$function_name(event) { >- Focus$function_name(event.data.id, 1); >- return false; >+ set_stocknumber(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 32821
:
146079
|
146344
|
146758
|
146851