summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-22 16:26:00 +0300
committerAndrew Dolgov <[email protected]>2010-11-22 16:26:00 +0300
commit57e24c82675e37ea9262e54e30836596caf77e76 (patch)
tree4632564997857315d6009ce553f39847a6fafe23 /prefs.js
parentc0ed0371060df409d2cde811f5a87510c10e1c24 (diff)
add experimental support for Twitter OAuth and Twitter feeds (bump schema)
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/prefs.js b/prefs.js
index 55e29d2af..833a99d46 100644
--- a/prefs.js
+++ b/prefs.js
@@ -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);
+ }
+}