Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…s disabled
  • Loading branch information...
commit 9d1822e7c6d1a8ffd636053d1e581948d6dddae5 1 parent 14d3dea
@chillu chillu authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 javascript/CMSMain.AddForm.js
View
5 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) {
Please sign in to comment.
Something went wrong with that request. Please try again.