|
|
|
@ -40,6 +40,7 @@ const Helpers = {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Feeds: {
|
|
|
|
|
clearFeedAccessKeys: function() {
|
|
|
|
|
if (confirm(__("This will invalidate all previously generated feed URLs. Continue?"))) {
|
|
|
|
|
Notify.progress("Clearing URLs...");
|
|
|
|
@ -51,6 +52,7 @@ const Helpers = {
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
System: {
|
|
|
|
|
getPHPInfo: function(widget) {
|
|
|
|
|
xhrPost("backend.php", {op: 'pref-system', method: 'getphpinfo'}, (transport) => {
|
|
|
|
@ -90,7 +92,8 @@ const Helpers = {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
editProfiles: function() {
|
|
|
|
|
Profiles: {
|
|
|
|
|
edit: function() {
|
|
|
|
|
const dialog = new fox.SingleUseDialog({
|
|
|
|
|
id: "profileEditDlg",
|
|
|
|
|
title: __("Settings Profiles"),
|
|
|
|
@ -159,6 +162,8 @@ const Helpers = {
|
|
|
|
|
dialog.refresh();
|
|
|
|
|
dialog.show();
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Prefs: {
|
|
|
|
|
customizeCSS: function() {
|
|
|
|
|
xhrJson("backend.php", {op: "pref-prefs", method: "customizeCSS"}, (reply) => {
|
|
|
|
|
|
|
|
|
@ -216,7 +221,7 @@ const Helpers = {
|
|
|
|
|
confirmReset: function() {
|
|
|
|
|
if (confirm(__("Reset to defaults?"))) {
|
|
|
|
|
xhrPost("backend.php", {op: "pref-prefs", method: "resetconfig"}, (transport) => {
|
|
|
|
|
Helpers.refresh();
|
|
|
|
|
Helpers.Prefs.refresh();
|
|
|
|
|
Notify.info(transport.responseText);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -226,7 +231,7 @@ const Helpers = {
|
|
|
|
|
Notify.progress("Loading, please wait...");
|
|
|
|
|
|
|
|
|
|
xhrPost("backend.php", {op: "pref-prefs", method: "clearplugindata", name: name}, () => {
|
|
|
|
|
Helpers.refresh();
|
|
|
|
|
Helpers.Prefs.refresh();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -236,6 +241,7 @@ const Helpers = {
|
|
|
|
|
Notify.close();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
OPML: {
|
|
|
|
|
import: function() {
|
|
|
|
|
const opml_file = $("opml_file");
|
|
|
|
|