mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #7015 from bcairns/3.5
Fix changetracker checkbox bugs
This commit is contained in:
commit
4f4fb62dfa
@ -92,7 +92,10 @@
|
|||||||
fields.not(':radio,:checkbox').bind('change.changetracker', onchange);
|
fields.not(':radio,:checkbox').bind('change.changetracker', onchange);
|
||||||
fields.each(function() {
|
fields.each(function() {
|
||||||
if($(this).is(':radio,:checkbox')) {
|
if($(this).is(':radio,:checkbox')) {
|
||||||
origVal = self.find(':input[name=' + $(this).attr('name') + ']:checked').val();
|
origVal = self.find(':input[name="' + $(this).attr('name') + '"]:checked').val();
|
||||||
|
if("undefined" === typeof origVal){
|
||||||
|
origVal = 0;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
origVal = $(this).val();
|
origVal = $(this).val();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user