Permalink
Browse files

Don't show inline firehose ad on external links

  • Loading branch information...
1 parent 097bba8 commit f5092bed88a635807e6033c312bcf0e5c563196c @pudge pudge committed Dec 16, 2008
Showing with 6 additions and 3 deletions.
  1. +6 −3 plugins/Ajax/htdocs/images/common.js
View
9 plugins/Ajax/htdocs/images/common.js
@@ -594,10 +594,13 @@ function firehose_toggle_tag_ui( toggle ) {
}
function firehose_click_tag( event ) {
- // _any_ click can trigger, but click-specific ad will win
- setTimeout(function(){ inlineAdFirehose(); }, 0);
+ var $target = $(event.target), command = '', $menu;
- var $target = $(event.target), command='', $menu;
+ // skip for non-JS hrefs
+ if (! $(target).find_nearest('a[href]:not([href=#])', 'self', 'up').length) {
+ // _any_ click can trigger, but click-specific ad will win
+ setTimeout(function(){ inlineAdFirehose(); }, 0);
+ }
$related_trigger = $target;

0 comments on commit f5092be

Please sign in to comment.