forked from FrederikBaerentsen/BrickTracker
Added sets.csv download, added missing minifig image error, added auto download of nil and nil_mf images, started proper fix for error in set numbers
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html data-theme="light" class="has-navbar-fixed-top">
|
||||
<head
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title></title>
|
||||
@@ -49,13 +49,11 @@
|
||||
|
||||
</div>
|
||||
</section>
|
||||
{% if error is defined %}
|
||||
|
||||
|
||||
<button class="js-modal-trigger" data-target="modal-js-example" id="modal-js">
|
||||
</button>
|
||||
{% else %}
|
||||
<button id="modal-js">
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
<div class="modal" id="modal-js-example">
|
||||
@@ -104,6 +102,13 @@ var socket = io.connect('http://' + document.domain + ':' + location.port + '/pr
|
||||
window.location.href = '/';
|
||||
});
|
||||
|
||||
socket.on('task_failed', function(data) {
|
||||
// Redirect to '/'
|
||||
const error = data.error;
|
||||
document.getElementById('modal-js').style.display = 'block';
|
||||
// window.location.href = '/create';
|
||||
});
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
window.onload = function () {
|
||||
|
||||
Reference in New Issue
Block a user