summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/Pref_Prefs.php6
-rw-r--r--classes/Pref_System.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/classes/Pref_Prefs.php b/classes/Pref_Prefs.php
index df0b62923..54cb4fa4f 100644
--- a/classes/Pref_Prefs.php
+++ b/classes/Pref_Prefs.php
@@ -345,14 +345,14 @@ class Pref_Prefs extends Handler_Protected {
Notify.close();
if (reply.indexOf('ERROR: ') == 0) {
- App.byId('pwd_change_infobox').innerHTML =
+ document.getElementById('pwd_change_infobox').innerHTML =
reply.replace('ERROR: ', '');
} else {
- App.byId('pwd_change_infobox').innerHTML =
+ document.getElementById('pwd_change_infobox').innerHTML =
reply.replace('ERROR: ', '');
- const warn = App.byId('default_pass_warning');
+ const warn = document.getElementById('default_pass_warning');
if (warn) Element.hide(warn);
}
diff --git a/classes/Pref_System.php b/classes/Pref_System.php
index 7946dc293..1839c4a51 100644
--- a/classes/Pref_System.php
+++ b/classes/Pref_System.php
@@ -209,7 +209,7 @@ class Pref_System extends Handler_Administrative {
evt.preventDefault();
if (this.validate()) {
xhr.json("backend.php", this.getValues(), (reply) => {
- const msg = App.byId("mail-test-result");
+ const msg = document.getElementById("mail-test-result");
if (reply.rc) {
msg.innerHTML = __("Mail sent.");