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:
17
js/prefs.js
17
js/prefs.js
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user