Skip to content

Commit

Permalink
Merge pull request #586 from magopian/1175060-updateURL-allowed-for-u…
Browse files Browse the repository at this point in the history
…nlisted-addons

fix regression: updateURL should be allowed for unlisted addons (bug 1175060)
  • Loading branch information
magopian committed Jun 16, 2015
2 parents aa1a428 + 2d3f162 commit 83d149a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions static/js/common/upload-addon.js
Expand Up @@ -265,8 +265,8 @@
// If the addon is detected as beta, automatically check
// the "beta" input, but only if the addon is listed.
var $new_form = $('.new-addon-file');
var isUnlisted = $('#id_is_unlisted').is(':checked') || !$new_form.data('addon-is-listed')
var $beta = $('#id_beta');
var isUnlisted = ($('#id_is_unlisted').length && $('#id_is_unlisted').is(':checked')) || !$new_form.data('addon-is-listed')
var $beta = $('#id_beta');
if (results.beta && !isUnlisted) {
$beta.prop('checked', true);
$('.beta-status').show();
Expand Down
2 changes: 1 addition & 1 deletion static/js/zamboni/devhub.js
Expand Up @@ -97,7 +97,7 @@ $(document).ready(function() {
var $isManualReview = $('#manual-review');
var $submitAddonProgress = $('.submit-addon-progress');
function updateListedStatus() {
if (!$isUnlisted.is(':checked') || $new_form.data('addon-is-listed')) { // It's a listed add-on.
if (($isUnlisted.length && !$isUnlisted.is(':checked')) || $new_form.data('addon-is-listed')) { // It's a listed add-on.
$uploadAddon.attr('data-upload-url', $uploadAddon.attr('data-upload-url-listed'));
$betaWarningLabel.hide();
$isSideloadLabel.hide();
Expand Down

0 comments on commit 83d149a

Please sign in to comment.