diff options
author | Thomas Renard <[email protected]> | 2012-12-27 19:18:21 +0100 |
---|---|---|
committer | Thomas Renard <[email protected]> | 2012-12-27 19:18:21 +0100 |
commit | 04d05dcc3f5d95ac1ba201820a4d10812b8068e7 (patch) | |
tree | b5f96c4b999223eaacb5fb4f1d81ad2e849b1e9d /js/prefs.js | |
parent | 4a0a3ca93ce2e1c360e3416fbddb0d666499baa8 (diff) | |
parent | 715a8239ac5cb67b49a2a66984303f27f11db2b3 (diff) |
Merge remote-tracking branch 'upstream/master' into owncloud
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); + } +} |