Ver a proveniência

[fix] Login page hashchange

version-14
Anand Doshi há 10 anos
ascendente
cometimento
f43060031b
1 ficheiros alterados com 7 adições e 2 eliminações
  1. +7
    -2
      frappe/templates/includes/login.js

+ 7
- 2
frappe/templates/includes/login.js Ver ficheiro

@@ -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');
});

Carregando…
Cancelar
Guardar