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