diff options
Diffstat (limited to 'prefs.js')
-rw-r--r-- | prefs.js | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -1704,4 +1704,24 @@ function editLabel(id, event) { } } +function clearTwitterCredentials() { + try { + var ok = confirm(__("This will clear your stored authentication information for Twitter. Continue?")); + + if (ok) { + notify_progress("Clearing credentials..."); + + var query = "?op=pref-feeds&subop=remtwitterinfo"; + new Ajax.Request("backend.php", { + parameters: query, + onComplete: function(transport) { + notify_info("Twitter credentials have been cleared."); + updateFeedList(); + } }); + } + + } catch (e) { + exception_error("clearTwitterCredentials", e); + } +} |