Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Nurkkala committed Sep 22, 2015
1 parent 42deafe commit 854ff00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/all-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function setUpPermissionsCheckboxes() {
$label.find('.yesno').text('No');
}
});
$('input[type="checkbox"]').click(function() {
$('input[type="checkbox"]').unbind('click').click(function() {
var $label = $(this).parents('label');
if ($(this).parents('label').hasClass('btn-danger')) {
$label.removeClass('btn-danger').addClass('btn-success');
Expand Down Expand Up @@ -236,7 +236,7 @@ var DREAMSUITE = {
if (set.id === parseInt($(this).val())) {
for (var key in set) {
var toBe = set[key];
var $checkbox = $('#id_form-' + rowIdx + '-' + key);
var $checkbox = $('#id_form-' + (rowIdx-1) + '-' + key);
var current = !!$checkbox.prop('checked');
if (toBe !== current) {
$checkbox.trigger('click');
Expand Down

0 comments on commit 854ff00

Please sign in to comment.