summaryrefslogtreecommitdiff
path: root/include/login_form.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-03 13:38:13 +0300
committerAndrew Dolgov <[email protected]>2018-12-03 13:38:13 +0300
commit71fc6d45bd761a9d2715faa68f2b8c0271ee7169 (patch)
tree47677db3e0d147dbe5c3d3cc71a6576a392881f3 /include/login_form.php
parenta049b5bd88f3ce07af0e2aa7c21992dc0605eea6 (diff)
refactor error reporting to AppBase; keep exception_error() for now as a shim
Diffstat (limited to 'include/login_form.php')
-rw-r--r--include/login_form.php41
1 files changed, 13 insertions, 28 deletions
diff --git a/include/login_form.php b/include/login_form.php
index 1eb5d26d4..cdf70803b 100644
--- a/include/login_form.php
+++ b/include/login_form.php
@@ -42,41 +42,26 @@ require(['dojo/parser', "dojo/ready", 'dijit/form/Button','dijit/form/CheckBox',
});
function fetchProfiles() {
- try {
- var query = "op=getProfiles&login=" + encodeURIComponent(document.forms["loginForm"].login.value);
-
- if (query) {
- new Ajax.Request("public.php", {
- parameters: query,
- onComplete: function(transport) {
- if (transport.responseText.match("select")) {
- $('profile_box').innerHTML = transport.responseText;
- //dojo.parser.parse('profile_box');
- }
- } });
- }
-
- } catch (e) {
- exception_error("fetchProfiles", e);
- }
+ const query = "op=getProfiles&login=" + encodeURIComponent(document.forms["loginForm"].login.value);
+
+ new Ajax.Request("public.php", {
+ parameters: query,
+ onComplete: function(transport) {
+ if (transport.responseText.match("select")) {
+ $('profile_box').innerHTML = transport.responseText;
+ //dojo.parser.parse('profile_box');
+ }
+ } });
}
-
function gotoRegForm() {
window.location.href = "register.php";
return false;
}
function bwLimitChange(elem) {
- try {
- var limit_set = elem.checked;
-
- setCookie("ttrss_bwlimit", limit_set,
- <?php print SESSION_COOKIE_LIFETIME ?>);
-
- } catch (e) {
- exception_error("bwLimitChange", e);
- }
+ Cookie.set("ttrss_bwlimit", elem.checked,
+ <?php print SESSION_COOKIE_LIFETIME ?>);
}
</script>
@@ -139,7 +124,7 @@ function bwLimitChange(elem) {
</div>
<div dojoType="dijit.Tooltip" connectId="bw_limit_label" position="below" style="display:none">
-<?php echo __("Does not display images in articles, reduces automatic refreshes."); ?>
+ <?php echo __("Does not display images in articles, reduces automatic refreshes."); ?>
</div>
<?php if (SESSION_COOKIE_LIFETIME > 0) { ?>