Przeglądaj źródła

[fix] Login page hashchange

version-14
Anand Doshi 10 lat temu
rodzic
commit
f43060031b
1 zmienionych plików z 7 dodań i 2 usunięć
  1. +7
    -2
      frappe/templates/includes/login.js

+ 7
- 2
frappe/templates/includes/login.js Wyświetl plik

@@ -124,9 +124,14 @@ login.login_handlers = (function() {
})();

frappe.ready(function() {
window.location.hash = "#login";
login.bind_events();
login.login();

if (!window.location.hash) {
window.location.hash = "#login";
} else {
$(window).trigger("hashchange");
}

$(".form-signup, .form-forgot").removeClass("hide");
$(document).trigger('login_rendered');
});

Ładowanie…
Anuluj
Zapisz