Permalink
Browse files

MINOR Don't allow page type selection in add form when radio button i…

…s disabled
  • Loading branch information...
1 parent 14d3dea commit 9d1822e7c6d1a8ffd636053d1e581948d6dddae5 @chillu chillu committed Jan 6, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 javascript/CMSMain.AddForm.js
@@ -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) {

0 comments on commit 9d1822e

Please sign in to comment.