fix login

This commit is contained in:
Andrew Dolgov 2018-12-03 09:26:26 +03:00
parent 5bcf59739d
commit e905ce7ea9
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ function init() {
display:''
});
fetchProfiles();
dijit.byId("bw_limit").attr("checked", getCookie("ttrss_bwlimit") == 'true');
dijit.byId("bw_limit").attr("checked", Cookie.get("ttrss_bwlimit") == 'true');
document.forms.loginForm.login.focus();
});
@ -46,7 +46,7 @@ function init() {
function fetchProfiles() {
try {
var query = "op=getProfiles&login=" + param_escape(document.forms["loginForm"].login.value);
var query = "op=getProfiles&login=" + encodeURIComponent(document.forms["loginForm"].login.value);
if (query) {
new Ajax.Request("public.php", {