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: jobImportUrl, langImportSingleError, langImportMultiError, jobStartUrl, langImportTimeOutError, langImportFinished, langImportFatalError */
var startedImport = false;
var startInterval = 2000;
var interval = 500;
@@ -31,7 +33,7 @@ function checkImportStatus() {
$.getJSON(jobImportUrl).done(reportOnJobImport).fail(failedJobImport);
}
function importComplete(data) {
function importComplete() {
"use strict";
var bar = $('#import-status-bar');
bar.removeClass('active');