Skip to content

Commit

Permalink
figure out the button url at the last moment (bug 578863)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Balogh committed Jul 16, 2010
1 parent b754624 commit 2e3c468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media/js/zamboni/buttons.js
Expand Up @@ -64,6 +64,8 @@ var installButton = function() {

// Helper for dealing with lazy-loaded z.button.messages.
var message = function(msg) {
// Get the xpi link for the first visible button.
params.url = $button.filter(':visible')[0].href;
return function(){ return format(z.button.messages[msg], params); }
};

Expand Down Expand Up @@ -253,8 +255,6 @@ var installButton = function() {
addToApp();
versionsAndPlatforms();
}
// Get the xpi link for the first visible button.
params.url = $button.filter(':visible')[0].href;
};


Expand Down

0 comments on commit 2e3c468

Please sign in to comment.