MCPcopy Index your code
hub / github.com/TruthHun/BookStack / checkState

Function checkState

static/js/jquery.form.js:532–548  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

530
531 // look for server aborts
532 function checkState() {
533 try {
534 var state = getDoc(io).readyState;
535 log('state = ' + state);
536 if (state && state.toLowerCase() == 'uninitialized') {
537 setTimeout(checkState,50);
538 }
539 }
540 catch(e) {
541 log('Server abort: ' , e, ' (', e.name, ')');
542 cb(SERVER_ABORT);
543 if (timeoutHandle) {
544 clearTimeout(timeoutHandle);
545 }
546 timeoutHandle = undefined;
547 }
548 }
549
550 // add "extra" data to form if provided in options
551 var extraInputs = [];

Callers

nothing calls this directly

Calls 3

getDocFunction · 0.85
logFunction · 0.85
cbFunction · 0.70

Tested by

no test coverage detected