Bugzilla – Attachment 11492 Details for
Bug 8524
Add barcode plugin that does not autofill
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8524 follow-up: fix Javascript syntax error
Bug-8524-follow-up-fix-Javascript-syntax-error.patch (text/plain), 1.37 KB, created by
Jonathan Druart
on 2012-08-09 12:59:41 UTC
(
hide
)
Description:
Bug 8524 follow-up: fix Javascript syntax error
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-08-09 12:59:41 UTC
Size:
1.37 KB
patch
obsolete
>From fc8228bc786df82c772e52848ab1693d5be6f21d Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Thu, 9 Aug 2012 08:39:10 -0400 >Subject: [PATCH] Bug 8524 follow-up: fix Javascript syntax error > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > C4/Barcodes/ValueBuilder.pm | 2 +- > cataloguing/value_builder/barcode_manual.pl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Barcodes/ValueBuilder.pm b/C4/Barcodes/ValueBuilder.pm >index 10cd504..309de1c 100644 >--- a/C4/Barcodes/ValueBuilder.pm >+++ b/C4/Barcodes/ValueBuilder.pm >@@ -64,7 +64,7 @@ sub get_barcode { > fnum = i; > } > } >- if (\$('#' + id).val() == '' || force) { >+ if (\$('#' + id).val() == '') { > \$('#' + id).val(document.f.field_value[fnum].value + '$nextnum'); > } > "; >diff --git a/cataloguing/value_builder/barcode_manual.pl b/cataloguing/value_builder/barcode_manual.pl >index b2f4105..276c762 100755 >--- a/cataloguing/value_builder/barcode_manual.pl >+++ b/cataloguing/value_builder/barcode_manual.pl >@@ -91,7 +91,7 @@ sub plugin_javascript { > > # default js body (if not filled by hbyymmincr) > $scr or $scr = <<END_OF_JS; >- if (\$('#' + id).val() == '' || force) { >+ if (\$('#' + id).val() == '') { > \$('#' + id).val('$nextnum'); > } > END_OF_JS >-- >1.7.7.3
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 8524
:
11271
|
11343
|
11481
|
11484
|
11485
|
11491
|
11492
|
11493
|
11494
|
11495