Skip to content

Commit

Permalink
Bug 622745, clicking the icon adds the addon id to the url
Browse files Browse the repository at this point in the history
  • Loading branch information
potch committed Jan 28, 2011
1 parent 2546176 commit 6c54bc6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions media/js/zamboni/addon_details.js
Expand Up @@ -3,6 +3,13 @@
/* general initialization */
$(document).ready(function() {
//performance warnings

if ($("#addon[data-id]").length) {
$(".addon .icon").click(function() {
window.location.hash = "id=" + $("#addon").attr("data-id");
})
}

$(".performance-note .popup").each(function(i,p) {
var $p = $(p),
$a = $p.siblings("a").first();
Expand All @@ -27,12 +34,6 @@ $(document).ready(function() {

if ($('#addon.primary').length == 0) return;

if ($("#addon[data-id]").length) {
$(".addon .icon").click(function() {
document.location.hash = "id=" + $("#addon").attr("data-id");
})
}

var lb_baseurl = z.media_url+'img/jquery-lightbox/';
$("a[rel=jquery-lightbox]").lightBox({
overlayOpacity: 0.6,
Expand Down

0 comments on commit 6c54bc6

Please sign in to comment.