mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/opaque into development
This commit is contained in:
commit
2f6dd37abb
@ -169,8 +169,6 @@
|
||||
|
||||
<script type="text/javascript" src="{{ url_for('static', filename='js/materialize.min.js') }}"></script>
|
||||
<script>
|
||||
var foo = document.querySelector("main");
|
||||
console.log(foo);
|
||||
M.AutoInit();
|
||||
M.Dropdown.init(
|
||||
document.getElementById("nav-notifications"),
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
this.corpus = corpora[this.corpusId];
|
||||
creationDateElement = document.getElementById("creation-date");
|
||||
creationDateElement.value = this.corpus.creation_date;
|
||||
creationDateElement.value = (new Date(this.corpus.creation_date * 1000)).toLocaleString();
|
||||
descriptionElement = document.getElementById("description");
|
||||
descriptionElement.innerHTML = this.corpus.description;
|
||||
titleElement = document.getElementById("title");
|
||||
|
@ -17,11 +17,11 @@
|
||||
|
||||
this.job = jobs[this.jobId];
|
||||
creationDateElement = document.getElementById("creation-date");
|
||||
creationDateElement.value = this.job.creation_date;
|
||||
creationDateElement.value = (new Date(this.job.creation_date * 1000)).toLocaleString();
|
||||
descriptionElement = document.getElementById("description");
|
||||
descriptionElement.innerHTML = this.job.description;
|
||||
endDateElement = document.getElementById("end-date");
|
||||
endDateElement.value = this.job.end_date;
|
||||
endDateElement.value = this.job.end_date ? (new Date(this.job.end_date * 1000)).toLocaleString() : "Not available";
|
||||
memMbElement = document.getElementById("mem-mb");
|
||||
memMbElement.value = this.job.mem_mb;
|
||||
nCoresElement = document.getElementById("n-cores");
|
||||
@ -63,7 +63,7 @@
|
||||
break;
|
||||
case "end_date":
|
||||
updatedElement = document.getElementById("end-date");
|
||||
updatedElement.value = operation.value;
|
||||
updatedElement.value = (new Date(operation.value * 1000)).toLocaleString();
|
||||
M.updateTextFields();
|
||||
break;
|
||||
case "status":
|
||||
|
Loading…
Reference in New Issue
Block a user