Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
always add the d2c popup
Browse files Browse the repository at this point in the history
  • Loading branch information
potch committed May 3, 2012
1 parent 10c6dcc commit b49fafd
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions media/js/zamboni/buttons.js
Expand Up @@ -312,27 +312,28 @@ var installButton = function() {
}
$button.closest('div').attr('data-version-supported', false);
$button.addClass('concealed');

var $ishell = $button.closest('.install-shell');
if (!compatible && $d2c_reasons.children().length) {
$ishell.find('.d2c-reasons-popup').popup(
$ishell.find('.d2c-reasons-help'), {
callback: function(obj) {
return {pointTo: $(obj.click_target)};
}
}
);
}

if (!opts.addPopup) return;

if (badPlatform) {
$button.addPopup(pmsg);
} else if (!compatible) {
// Show compatibility message.
var $ishell = $button.closest('.install-shell');
params['versions_url'] = versions_url;
params['reasons'] = $d2c_reasons.html();

$button.addPopup(nocompat);

if ($d2c_reasons.children().length) {
$ishell.find('.d2c-reasons-popup').popup(
$ishell.find('.d2c-reasons-help'), {
callback: function(obj) {
return {pointTo: $(obj.click_target)};
}
}
);
}
} else {
// Bad version.
$button.addPopup(vmsg);
Expand Down

0 comments on commit b49fafd

Please sign in to comment.