Study programme step is automatically skipped for faculties without programmes
This commit is contained in:
10
ui.js
10
ui.js
@@ -232,14 +232,20 @@ async function run() {
|
||||
let steps_len = Object.keys(steps).length;
|
||||
|
||||
while(id < steps_len) {
|
||||
let step = get_step(id);
|
||||
|
||||
if(step.condition && !step.condition()) {
|
||||
if(animation > 0) id++;
|
||||
if(animation < 0) id--;
|
||||
continue;
|
||||
}
|
||||
|
||||
back_button.style.display = (id != 0) ? "" : "none";
|
||||
next_button.innerText = (id < steps_len - 1) ? "Další →" : "Dokončit";
|
||||
next_button.disabled = false;
|
||||
|
||||
container.innerHTML = "";
|
||||
|
||||
let step = get_step(id);
|
||||
|
||||
let title = new ElementBuilder("h1")
|
||||
.html(step.title)
|
||||
.finish();
|
||||
|
Reference in New Issue
Block a user