mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-07 14:44:15 -06:00
commit
9ed32ad227
10
public/v1/js/ff/import/status_v2.js
vendored
10
public/v1/js/ff/import/status_v2.js
vendored
@ -24,7 +24,7 @@ var timeOutId;
|
||||
var jobRunRoutineStarted = false;
|
||||
var jobStorageRoutineStarted = false;
|
||||
var checkInitialInterval = 1000;
|
||||
var checkNextInterval = 500;
|
||||
var checkNextInterval = 800;
|
||||
var maxLoops = 65536;
|
||||
var totalLoops = 0;
|
||||
var startCount = 0;
|
||||
@ -59,7 +59,6 @@ function checkJobJSONStatus() {
|
||||
*/
|
||||
function reportJobJSONDone(data) {
|
||||
console.log('In reportJobJSONDone() with status "' + data.status + '"');
|
||||
console.log(data);
|
||||
switch (data.status) {
|
||||
case "ready_to_run":
|
||||
if (startCount > 0) {
|
||||
@ -87,10 +86,8 @@ function reportJobJSONDone(data) {
|
||||
showJobResults(data);
|
||||
break;
|
||||
default:
|
||||
console.warn('No specific action for status ' + data.status);
|
||||
showProgressBox(data.status);
|
||||
recheckJobJSONStatus();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -120,7 +117,6 @@ function showJobResults(data) {
|
||||
|
||||
// show success box.
|
||||
$('.status_finished').show();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -230,8 +226,6 @@ function showProgressBox(status) {
|
||||
}
|
||||
|
||||
$('#import-status-txt').text('Job status: ' + status);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -290,7 +284,5 @@ function reportJobPOSTDone(data) {
|
||||
$('.fatal_error').show();
|
||||
console.error(data.message);
|
||||
$('.fatal_error_txt').text('Job could not be started or crashed: ' + data.message);
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -172,7 +172,6 @@
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script type="text/javascript">
|
||||
|
||||
var jobStatusUri = '{{ route('import.job.status.json', [importJob.key]) }}';
|
||||
var jobStartUri = '{{ route('import.job.start', [importJob.key]) }}';
|
||||
var jobConfigurationUri = '{{ route('import.job.configuration.index', [importJob.key]) }}';
|
||||
@ -188,8 +187,6 @@
|
||||
{#var langImportSingleError = '{{ trans('import.status_errors_single')|escape('js') }}';#}
|
||||
{#var langImportMultiError = '{{ trans('import.status_errors_multi')|escape('js') }}';#}
|
||||
|
||||
|
||||
|
||||
var token = '{{ csrf_token() }}';
|
||||
var job = {{ job|json_encode|raw }};
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user