projects
/
Biblio-RFID.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0baaf0c
)
don't display AF if there is nothing
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 27 Aug 2014 13:10:58 +0000
(15:10 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 27 Aug 2014 13:10:58 +0000
(15:10 +0200)
examples/selfcheck.js
patch
|
blob
|
history
diff --git
a/examples/selfcheck.js
b/examples/selfcheck.js
index
250c547
..
c57987e
100644
(file)
--- a/
examples/selfcheck.js
+++ b/
examples/selfcheck.js
@@
-203,7
+203,7
@@
function circulation( barcode, sid ) {
pending_jsonp++;
$.getJSON('/sip2/'+circulation_type+'/'+borrower_cardnumber+'/'+barcode+'/'+sid , function( data ) {
console.info( circulation_type, data );
- $('ul#books').append('<li>' + ( data['AJ'] || barcode ) +
' <small>' + data['AF'] + '</small>
</li>');
+ $('ul#books').append('<li>' + ( data['AJ'] || barcode ) +
( data['AF'] ? ' <b>' + data['AF'] + '</b>' : '' ) + '
</li>');
console.debug( book_barcodes );
pending_jsonp--;
}).fail( function() {