Skip to content

Commit

Permalink
MINOR Fixed disabled behaviour in MemberTableField.js permission toggles
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@99603 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu committed Feb 22, 2010
1 parent f90f66a commit 67205b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion javascript/MemberTableField.js
Expand Up @@ -20,13 +20,14 @@
if(this.is(':checked')) {
checkboxes.each(function() {
$(this).data('SecurityAdmin.oldChecked', $(this).attr('checked'));
$(this).data('SecurityAdmin.oldDisabled', $(this).attr('disabled'));
$(this).attr('disabled', 'disabled');
$(this).attr('checked', 'checked');
});
} else {
checkboxes.each(function() {
$(this).attr('checked', $(this).data('SecurityAdmin.oldChecked'));
$(this).attr('disabled', '');
$(this).attr('disabled', $(this).data('SecurityAdmin.oldDisabled'));
});
}
}
Expand Down

0 comments on commit 67205b0

Please sign in to comment.