Skip to content

Commit

Permalink
really be lazy about finding the button url (bug 578863)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Balogh committed Jul 17, 2010
1 parent 2e3c468 commit a4056e5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions media/js/zamboni/buttons.js
Expand Up @@ -64,9 +64,11 @@ 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); }
return function(){
// Get the xpi link for the first visible button.
params.url = $button.filter(':visible')[0].href;
return format(z.button.messages[msg], params);
}
};

var addWarning = function(msg) { $this.parent().append(format(notavail, [msg])); };
Expand Down

0 comments on commit a4056e5

Please sign in to comment.