1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:15:55 +00:00

add plugin storage table to schema; add ability to clear plugin data

This commit is contained in:
Andrew Dolgov
2012-12-27 19:20:12 +04:00
parent d8a1d2a25b
commit 5d9abb1e11
8 changed files with 93 additions and 31 deletions

View File

@@ -1925,3 +1925,20 @@ function toggleAdvancedPrefs() {
exception_error("toggleAdvancedPrefs", e);
}
}
function clearPluginData(name) {
try {
if (confirm(__("Clear stored data for this plugin?"))) {
notify_progress("Loading, please wait...");
new Ajax.Request("backend.php", {
parameters: "?op=pref-prefs&method=clearplugindata&name=" + param_escape(name),
onComplete: function(transport) {
notify('');
updatePrefsList();
} });
}
} catch (e) {
exception_error("clearPluginData", e);
}
}