mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Don't allow page type selection in add form when radio button is disabled
This commit is contained in:
parent
14d3dea87c
commit
9d1822e7c6
@ -69,10 +69,11 @@
|
||||
this.setSelected(true);
|
||||
},
|
||||
setSelected: function(bool) {
|
||||
var input = this.find('input');
|
||||
this.toggleClass('selected', bool);
|
||||
if(bool) {
|
||||
if(bool && !input.is(':disabled')) {
|
||||
this.siblings().setSelected(false);
|
||||
this.find('input').attr('checked', 'checked');
|
||||
input.attr('checked', 'checked');
|
||||
}
|
||||
},
|
||||
setEnabled: function(bool) {
|
||||
|
Loading…
Reference in New Issue
Block a user