Skip to content

Commit

Permalink
Modify "action link" example, showing how to make links open in a pop…
Browse files Browse the repository at this point in the history
…up window (see seaofclouds#164)
  • Loading branch information
purcell committed Aug 28, 2011
1 parent 540efe1 commit 729ee31
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tweet/index.html
Expand Up @@ -146,7 +146,8 @@ <h3>Examples</h3>
</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({
Expand All @@ -155,6 +156,12 @@ <h3>Examples</h3>
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>
Expand Down

0 comments on commit 729ee31

Please sign in to comment.