diff --git a/media/js/devreg/edit.js b/media/js/devreg/edit.js index 2188be6ed3..236fe3f272 100644 --- a/media/js/devreg/edit.js +++ b/media/js/devreg/edit.js @@ -1,8 +1,7 @@ (function() { - var $this; - $('.devhub-form').on('click', '.toggles a', _pd(function() { - $this = $(this); - var $choices = $this.closest('td').find('.checkbox-choices input[type=checkbox]:not(:disabled)'); + $('form').on('click', '.toggles a', _pd(function() { + var $this = $(this); + var $choices = $this.closest('td, div').find('.checkbox-choices input[type=checkbox]:not(:disabled)'); if ($this.hasClass('all')) { $choices.attr('checked', true); } else { @@ -12,7 +11,7 @@ // Disable individual checkbox fields when we see them. // (Customizing Django's CheckboxSelectMultiple widget is stupid.) $('.checkbox-choices[data-disabled]').each(function() { - $this = $(this); + var $this = $(this); var choices = JSON.parse($this.attr('data-disabled')); var selectors = _.map(choices, function(val) { return format('input[value="{0}"]', val); diff --git a/mkt/developers/templates/developers/apps/edit/details.html b/mkt/developers/templates/developers/apps/edit/details.html index c61071dcbc..fecca3240d 100644 --- a/mkt/developers/templates/developers/apps/edit/details.html +++ b/mkt/developers/templates/developers/apps/edit/details.html @@ -54,54 +54,6 @@ {% endif %} -
- {{ _('Select All') }} · - {{ _('None') }} -
- {{ region_form.regions.errors }} -- - {{ _('Learn why some regions are restricted.') }} -
- {% endif %} -