diff options
author | Andrew Dolgov <[email protected]> | 2012-12-27 19:20:12 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-12-27 19:20:36 +0400 |
commit | 5d9abb1e11262b5ef7c6f4695590ce5bdb257b85 (patch) | |
tree | b87b628efa00e479eb37a635827b802a61a26746 /js/prefs.js | |
parent | d8a1d2a25b2247e5a63f5b0ab7f0bd9423a217e5 (diff) |
add plugin storage table to schema; add ability to clear plugin data
Diffstat (limited to 'js/prefs.js')
-rw-r--r-- | js/prefs.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/prefs.js b/js/prefs.js index 0b3f47c0a..7ee88ab56 100644 --- a/js/prefs.js +++ b/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); + } +} |