Przeglądaj źródła

Merge pull request #1014 from anandpdoshi/anand-feb-17

Fixed Login Page
version-14
Anand Doshi 10 lat temu
rodzic
commit
fa2b8143e2
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() { frappe.ready(function() {
window.location.hash = "#login";
login.bind_events(); login.bind_events();
login.login();

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

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

Ładowanie…
Anuluj
Zapisz