Permalink
Browse files

Merge pull request #562 from genehack/genehack/issue-561

Prevent Github popup from firing when 'Homepage' link contains 'github.com'
  • Loading branch information...
oalders committed Apr 29, 2012
2 parents e0ee182 + 03b10e0 commit ed36ae93d512dbb4aba605ae0de39b78bff23eae
Showing with 4 additions and 4 deletions.
  1. +1 −1 root/inc/release-info.html
  2. +3 −3 root/static/js/github.js
@@ -1,4 +1,4 @@
<% IF release.resources.homepage %><li><a href="<% release.resources.homepage %>">Homepage</a></li><% END %>
<% IF release.resources.homepage %><li><a class="nopopup" href="<% release.resources.homepage %>">Homepage</a></li><% END %>
<% IF release.resources.repository %>
<li>
<% IF release.resources.repository.web %>
View
@@ -195,8 +195,8 @@ function Github() {
};
$(document).ready(function() {
$('.search-bar a').each(function() {
var github = new Github();
github.createPopup(this);
$('.search-bar a:not(.nopopup)').each(function() {
var github = new Github();
github.createPopup(this);
});
});

0 comments on commit ed36ae9

Please sign in to comment.