diff --git a/classes/dlg.php b/classes/dlg.php
index 6617dfe07..7ac18bb90 100644
--- a/classes/dlg.php
+++ b/classes/dlg.php
@@ -49,7 +49,7 @@ class Dlg extends Handler_Protected {
print "
";
- print "
";
- print "".
+ print "".
__('Manage profiles')." ";
- print "".
+ print "".
__('Reset to defaults')."";
print " ";
@@ -756,7 +756,7 @@ class Pref_Prefs extends Handler_Protected {
if (count($tmppluginhost->get_all($plugin)) > 0) {
if (in_array($name, $system_enabled)) {
- print "".__("Clear data")." | ";
}
}
@@ -816,7 +816,7 @@ class Pref_Prefs extends Handler_Protected {
if (count($tmppluginhost->get_all($plugin)) > 0) {
if (in_array($name, $system_enabled) || in_array($name, $user_enabled)) {
- print "".__("Clear data")." | ";
+ print "".__("Clear data")." | ";
}
}
diff --git a/classes/pref/system.php b/classes/pref/system.php
index 17dfb10ca..d60b419cf 100644
--- a/classes/pref/system.php
+++ b/classes/pref/system.php
@@ -37,10 +37,10 @@ class Pref_System extends Handler_Protected {
LIMIT 100");
print "".__('Refresh')." ";
+ onclick=\"Helpers.updateEventLog()\">".__('Refresh')." ";
print " ".__('Clear')." ";
+ class=\"btn-danger\" onclick=\"Helpers.clearEventLog()\">".__('Clear')." ";
print "";
diff --git a/js/PrefHelpers.js b/js/PrefHelpers.js
index df42547b2..e4ffb04ef 100644
--- a/js/PrefHelpers.js
+++ b/js/PrefHelpers.js
@@ -1,5 +1,5 @@
define(["dojo/_base/declare"], function (declare) {
- Prefs = {
+ Helpers = {
clearFeedAccessKeys: function() {
if (confirm(__("This will invalidate all previously generated feed URLs. Continue?"))) {
Notify.progress("Clearing URLs...");
@@ -56,7 +56,7 @@ define(["dojo/_base/declare"], function (declare) {
xhrPost("backend.php", query, () => {
Notify.close();
- Prefs.editProfiles();
+ Helpers.editProfiles();
});
}
@@ -88,7 +88,7 @@ define(["dojo/_base/declare"], function (declare) {
xhrPost("backend.php", query, () => {
Notify.close();
- Prefs.editProfiles();
+ Helpers.editProfiles();
});
}
@@ -128,7 +128,7 @@ define(["dojo/_base/declare"], function (declare) {
confirmReset: function() {
if (confirm(__("Reset to defaults?"))) {
xhrPost("backend.php", {op: "pref-prefs", method: "resetconfig"}, (transport) => {
- Prefs.refresh();
+ Helpers.refresh();
Notify.info(transport.responseText);
});
}
@@ -138,7 +138,7 @@ define(["dojo/_base/declare"], function (declare) {
Notify.progress("Loading, please wait...");
xhrPost("backend.php", {op: "pref-prefs", method: "clearplugindata", name: name}, () => {
- Prefs.refresh();
+ Helpers.refresh();
});
}
},
@@ -150,7 +150,7 @@ define(["dojo/_base/declare"], function (declare) {
}
};
- Prefs.OPML = {
+ Helpers.OPML = {
import: function() {
const opml_file = $("opml_file");
@@ -225,8 +225,7 @@ define(["dojo/_base/declare"], function (declare) {
}
return false;
},
+ };
-};
-
- return Prefs;
+ return Helpers;
});
diff --git a/js/prefs.js b/js/prefs.js
index 4bdfb45ef..dafdbcdee 100755
--- a/js/prefs.js
+++ b/js/prefs.js
@@ -5,7 +5,7 @@ let App;
let CommonDialogs;
let Filters;
let Users;
-let Prefs;
+let Helpers;
const Plugins = {};