mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #542 from grafixeyehero/wizardfinsih
Improve wizard finish page redirect
This commit is contained in:
commit
5eb6a4b5ba
2 changed files with 9 additions and 9 deletions
|
@ -6,17 +6,11 @@ define(["loading"], function(loading) {
|
||||||
url: ApiClient.getUrl("Startup/Complete"),
|
url: ApiClient.getUrl("Startup/Complete"),
|
||||||
type: "POST"
|
type: "POST"
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
Dashboard.navigate("dashboard.html");
|
|
||||||
loading.hide();
|
loading.hide();
|
||||||
|
window.location.href = "index.html";
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return function(view, params) {
|
return function(view, params) {
|
||||||
view.querySelector(".btnWizardNext").addEventListener("click", onFinish);
|
view.querySelector(".btnWizardNext").addEventListener("click", onFinish);
|
||||||
view.addEventListener("viewshow", function() {
|
|
||||||
document.querySelector(".skinHeader").classList.add("noHomeButtonHeader")
|
|
||||||
});
|
|
||||||
view.addEventListener("viewhide", function() {
|
|
||||||
document.querySelector(".skinHeader").classList.remove("noHomeButtonHeader")
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
@ -10,8 +10,14 @@
|
||||||
<p style="margin:2em 0;">${WizardCompleted}</p>
|
<p style="margin:2em 0;">${WizardCompleted}</p>
|
||||||
|
|
||||||
<div class="wizardNavigation">
|
<div class="wizardNavigation">
|
||||||
<button is="emby-button" type="button" class="raised button-cancel" onclick="history.back();"><i class="md-icon">arrow_back</i><span>${LabelPrevious}</span></button>
|
<button is="emby-button" type="button" class="raised button-cancel" onclick="history.back();">
|
||||||
<button is="emby-button" type="button" class="raised btnWizardNext button-submit"><i class="md-icon">check</i><span>${LabelFinish}</span></button>
|
<i class="md-icon">arrow_back</i>
|
||||||
|
<span>${LabelPrevious}</span>
|
||||||
|
</button>
|
||||||
|
<button is="emby-button" type="button" class="raised btnWizardNext button-submit">
|
||||||
|
<i class="md-icon">check</i>
|
||||||
|
<span>${LabelFinish}</span>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue