mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00: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);
|
this.setSelected(true);
|
||||||
},
|
},
|
||||||
setSelected: function(bool) {
|
setSelected: function(bool) {
|
||||||
|
var input = this.find('input');
|
||||||
this.toggleClass('selected', bool);
|
this.toggleClass('selected', bool);
|
||||||
if(bool) {
|
if(bool && !input.is(':disabled')) {
|
||||||
this.siblings().setSelected(false);
|
this.siblings().setSelected(false);
|
||||||
this.find('input').attr('checked', 'checked');
|
input.attr('checked', 'checked');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setEnabled: function(bool) {
|
setEnabled: function(bool) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user