diff options
author | Andrew Dolgov <[email protected]> | 2012-12-23 14:52:18 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-12-23 14:52:18 +0400 |
commit | 19c7350770788edf3ae0bb1fd6d95876667adbf6 (patch) | |
tree | e539d53acd796375d7feba1efd66d3850fd14db1 /js/tweet_button.js | |
parent | 83e6e313be6de7d6e3f155a13c821ab82da12575 (diff) |
experimental new plugin system
Diffstat (limited to 'js/tweet_button.js')
-rw-r--r-- | js/tweet_button.js | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/js/tweet_button.js b/js/tweet_button.js deleted file mode 100644 index d127010ac..000000000 --- a/js/tweet_button.js +++ /dev/null @@ -1,31 +0,0 @@ - function tweetArticle(id) { - try { - var query = "?op=rpc&method=buttonPlugin&plugin=tweet&plugin_method=getTweetInfo&id=" + param_escape(id); - - console.log(query); - - var d = new Date(); - var ts = d.getTime(); - - var w = window.open('backend.php?op=backend&method=loading', 'ttrss_tweet', - "status=0,toolbar=0,location=0,width=500,height=400,scrollbars=1,menubar=0"); - - new Ajax.Request("backend.php", { - parameters: query, - onComplete: function(transport) { - var ti = JSON.parse(transport.responseText); - - var share_url = "http://twitter.com/share?_=" + ts + - "&text=" + param_escape(ti.title) + - "&url=" + param_escape(ti.link); - - w.location.href = share_url; - - } }); - - - } catch (e) { - exception_error("tweetArticle", e); - } - } - |