diff options
author | Andrew Dolgov <[email protected]> | 2010-11-22 16:26:00 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-22 16:26:00 +0300 |
commit | 57e24c82675e37ea9262e54e30836596caf77e76 (patch) | |
tree | 4632564997857315d6009ce553f39847a6fafe23 /prefs.js | |
parent | c0ed0371060df409d2cde811f5a87510c10e1c24 (diff) |
add experimental support for Twitter OAuth and Twitter feeds (bump schema)
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); + } +} |