X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=examples%2Fselfcheck.js;h=9436d799252dd9ddc7e73a76e917790d2167df8a;hb=abaaec833076bde6e6e517e8b88ae9c1b098e9c0;hp=4955e54f30b3e627339663e7be984f73071a40a6;hpb=a32bdef661b26489f2b6db3622700846c61f4018;p=Biblio-RFID.git diff --git a/examples/selfcheck.js b/examples/selfcheck.js index 4955e54..9436d79 100644 --- a/examples/selfcheck.js +++ b/examples/selfcheck.js @@ -54,7 +54,8 @@ function change_page(new_state) { if ( state == 'end' ) { window.setTimeout(function(){ - change_page('start'); + //change_page('start'); + location.reload(); // force js VM to GC? },end_timeout); } @@ -168,6 +169,8 @@ function start( cardnumber ) { fill_in( 'borrower_email', data['BE'] ); fill_in( 'hold_items', data['fixed'].substr( 2 + 14 + 3 + 18 + ( 0 * 4 ), 4 ) ) * 1; fill_in( 'overdue_items', data['fixed'].substr( 2 + 14 + 3 + 18 + ( 1 * 4 ), 4 ) ) * 1; + fill_in( 'charged_items', data['fixed'].substr( 2 + 14 + 3 + 18 + ( 2 * 4 ), 4 ) ) * 1; + fill_in( 'fine_items', data['fixed'].substr( 2 + 14 + 3 + 18 + ( 3 * 4 ), 4 ) ) * 1; pending_jsonp--; change_page('borrower_info'); }).fail( function(data) {