Bug 8524 follow-up: fix Javascript syntax error

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jared Camins-Esakov 2012-08-09 08:39:10 -04:00 committed by Paul Poulain
parent 7c22380242
commit 6c77b4d117
2 changed files with 2 additions and 2 deletions

View file

@ -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');
}
";

View file

@ -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