This should fix most Javascript errors.

This commit is contained in:
James Cole
2017-01-02 10:34:01 +01:00
parent 36f1b6a834
commit f8268a864b
26 changed files with 102 additions and 51 deletions

View File

@@ -8,6 +8,8 @@
* See the LICENSE file for details.
*/
/** global: jobKey */
var intervalId = 0;
$(function () {
@@ -79,7 +81,7 @@ function callExport() {
// call status, keep calling it until response is "finished"?
intervalId = window.setInterval(checkStatus, 500);
$.post('export/submit', data).done(function (data) {
$.post('export/submit', data).done(function () {
// stop polling:
window.clearTimeout(intervalId);