This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restrict Games category for Brazil regional store (bug 767952)
- Loading branch information
Showing
10 changed files
with
291 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
(function() { | ||
var $this; | ||
$('.devhub-form').on('click', '.toggles a', _pd(function() { | ||
var $this = $(this), | ||
$choices = $this.closest('td').find('.checkbox-choices input[type=checkbox]'); | ||
$this = $(this); | ||
var $choices = $this.closest('td').find('.checkbox-choices input[type=checkbox]:not(:disabled)'); | ||
if ($this.hasClass('all')) { | ||
$choices.attr('checked', true); | ||
} else { | ||
$choices.removeAttr('checked'); | ||
} | ||
})); | ||
})).on('editLoaded.disableCheckboxes', function(e) { | ||
// Disable individual checkbox fields when we see them. | ||
// (Customizing Django's CheckboxSelectMultiple widget is stupid.) | ||
$('.checkbox-choices').each(function() { | ||
$this = $(this); | ||
var choices = JSON.parse($this.attr('data-disabled')); | ||
var selectors = _.map(choices, function(val) { | ||
return format('input[value="{0}"]', val); | ||
}); | ||
$this.find(selectors.join(', ')).attr('disabled', true).removeAttr('checked'); | ||
}); | ||
}); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from mkt.constants import regions | ||
from mkt.constants import ratingsbodies, regions | ||
from mkt.constants.submit import * | ||
|
||
MKT_CUT = .70 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
no one letter variable names, please