Skip to content
Browse files

MINOR Fixed disabled behaviour in MemberTableField.js permission toggles

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@99603 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent f90f66a commit 67205b01e29b77c1d2d61ddd021629cd475a3744 @chillu chillu committed Feb 22, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 javascript/MemberTableField.js
View
3 javascript/MemberTableField.js
@@ -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'));
});
}
}

0 comments on commit 67205b0

Please sign in to comment.
Something went wrong with that request. Please try again.