Skip to content

Commit

Permalink
fix regression: updateURL should be allowed for unlisted addons (bug …
Browse files Browse the repository at this point in the history
…1175060)
  • Loading branch information
magopian committed Jun 16, 2015
1 parent aa1a428 commit 2d3f162
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 2d3f162

Please sign in to comment.