Ver código fonte

[fix] Login page hashchange

version-14
Anand Doshi 10 anos atrás
pai
commit
f43060031b
1 arquivos alterados com 7 adições e 2 exclusões
  1. +7
    -2
      frappe/templates/includes/login.js

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

@@ -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
Salvar