projects
/
Biblio-RFID.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
implemented REST /beep
[Biblio-RFID.git]
/
examples
/
selfcheck.js
diff --git
a/examples/selfcheck.js
b/examples/selfcheck.js
index
2b65c99
..
a43e684
100644
(file)
--- a/
examples/selfcheck.js
+++ b/
examples/selfcheck.js
@@
-24,7
+24,14
@@
var tick_warning = 10; // s
var tick = 0;
function beep() {
- // FIXME
+ pending_jsonp++;
+ $.getJSON("/beep")
+ .done( function(data) {
+ pending_jsonp--;
+ })
+ .fail( function(data) {
+ pending_jsonp--;
+ });
}
function start_timeout() {