UI - Fix back navigation / browser history (#1556)
This commit is contained in:
@@ -12,7 +12,7 @@ window.addEventListener('hashchange', function () {
|
|||||||
var has_errors = document.querySelectorAll(".messages .error");
|
var has_errors = document.querySelectorAll(".messages .error");
|
||||||
if (!has_errors.length) {
|
if (!has_errors.length) {
|
||||||
if (document.location.hash == "") {
|
if (document.location.hash == "") {
|
||||||
document.querySelector(".tabs ul li:first-child a").click();
|
location.replace(document.querySelector(".tabs ul li:first-child a").hash);
|
||||||
} else {
|
} else {
|
||||||
set_active_tab();
|
set_active_tab();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user