Skip to content
Browse files

Modify "action link" example, showing how to make links open in a pop…

…up window (see #164)
  • Loading branch information...
1 parent 540efe1 commit 729ee3165a71d0172a614fb4a9a88c5c9d2fbe90 @purcell purcell committed Aug 28, 2011
Showing with 8 additions and 1 deletion.
  1. +8 −1 tweet/index.html
View
9 tweet/index.html
@@ -146,7 +146,8 @@
</pre>
<div id='filter' class="query"></div>
- <p>Customize the layout to eliminate the date stamps and avatars, and add an action link:</p>
+ <p>Customize the layout to eliminate the date stamps and avatars, add an action link,
+ and make it open in a popup window:</p>
<pre class="example">
jQuery(function($){
$("#custom").tweet({
@@ -155,6 +156,12 @@
username: "seaofclouds",
template: "{text} &raquo; {retweet_action}"
});
+ }).bind("loaded", function(){
+ $(this).find("a.tweet_action").click(function(ev) {
+ window.open(this.href, "Retweet",
+ 'menubar=0,resizable=0,width=600,height=340,top=200,left=400');
+ ev.preventDefault();
+ });
});
</pre>
<div id='custom' class="query"></div>

0 comments on commit 729ee31

Please sign in to comment.
Something went wrong with that request. Please try again.