From f89924f7a19871e26d5805a6c1863903c6e474bf Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 2 Dec 2018 18:38:27 +0300 Subject: set use strict on JS modules; remove some mostly useless stuff like get_minified_js() --- include/login_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/login_form.php') diff --git a/include/login_form.php b/include/login_form.php index bb142f6c5..9c3a9b375 100644 --- a/include/login_form.php +++ b/include/login_form.php @@ -10,7 +10,7 @@ foreach (array("lib/prototype.js", "lib/dojo/dojo.js", "lib/dojo/tt-rss-layer.js", - "js/functions.js", + "js/common.js", "errors.php?mode=js") as $jsfile) { echo javascript_tag($jsfile); -- cgit v1.2.3 From e905ce7ea983e425de85282ce7d24fb9f64402d4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 3 Dec 2018 09:26:26 +0300 Subject: fix login --- include/login_form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/login_form.php') diff --git a/include/login_form.php b/include/login_form.php index 9c3a9b375..844314d5e 100644 --- a/include/login_form.php +++ b/include/login_form.php @@ -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", { -- cgit v1.2.3 From 84affc7b1d71769038dfd25d74e40d6bf744e5fb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 3 Dec 2018 09:33:44 +0300 Subject: rework dojo singleton modules to better work with phpstorm completion (ugh) - declare() is not needed there anyway remove event.observe from login form (not needed) load pluginhost via amd --- include/login_form.php | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) (limited to 'include/login_form.php') diff --git a/include/login_form.php b/include/login_form.php index 844314d5e..1eb5d26d4 100644 --- a/include/login_form.php +++ b/include/login_form.php @@ -19,30 +19,27 @@ @@ -139,7 +124,7 @@ function bwLimitChange(elem) {
- +
0) { ?> -- cgit v1.2.3