mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-04-06 01:04:22 +00:00
Codestyle.
This commit is contained in:
parent
aa23cf04b5
commit
bb26cba009
@ -33,7 +33,7 @@
|
|||||||
serviceVersionElement = document.getElementById("service-version");
|
serviceVersionElement = document.getElementById("service-version");
|
||||||
serviceVersionElement.value = this.job.service_version;
|
serviceVersionElement.value = this.job.service_version;
|
||||||
statusColor = JobList.STATUS_COLORS[this.job.status]
|
statusColor = JobList.STATUS_COLORS[this.job.status]
|
||||||
|| JobList.STATUS_COLORS['default'];
|
|| JobList.STATUS_COLORS['default'];
|
||||||
statusElement = document.getElementById("status");
|
statusElement = document.getElementById("status");
|
||||||
statusElement.classList.add(statusColor);
|
statusElement.classList.add(statusColor);
|
||||||
statusElement.innerHTML = this.job.status;
|
statusElement.innerHTML = this.job.status;
|
||||||
@ -73,9 +73,9 @@
|
|||||||
updatedElement = document.getElementById("status");
|
updatedElement = document.getElementById("status");
|
||||||
status = updatedElement.innerHTML;
|
status = updatedElement.innerHTML;
|
||||||
statusColor = JobList.STATUS_COLORS[status]
|
statusColor = JobList.STATUS_COLORS[status]
|
||||||
|| JobList.STATUS_COLORS['default'];
|
|| JobList.STATUS_COLORS['default'];
|
||||||
newStatusColor = JobList.STATUS_COLORS[operation.value]
|
newStatusColor = JobList.STATUS_COLORS[operation.value]
|
||||||
|| JobList.STATUS_COLORS['default'];
|
|| JobList.STATUS_COLORS['default'];
|
||||||
updatedElement.classList.remove(statusColor);
|
updatedElement.classList.remove(statusColor);
|
||||||
updatedElement.classList.add(newStatusColor);
|
updatedElement.classList.add(newStatusColor);
|
||||||
updatedElement.innerHTML = operation.value;
|
updatedElement.innerHTML = operation.value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user