Skip to content
This repository
Browse code

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

…s disabled
  • Loading branch information...
commit 9d1822e7c6d1a8ffd636053d1e581948d6dddae5 1 parent 14d3dea
Ingo Schommer chillu authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +3 2 javascript/CMSMain.AddForm.js
5 javascript/CMSMain.AddForm.js
@@ -69,10 +69,11 @@
69 69 this.setSelected(true);
70 70 },
71 71 setSelected: function(bool) {
  72 + var input = this.find('input');
72 73 this.toggleClass('selected', bool);
73   - if(bool) {
  74 + if(bool && !input.is(':disabled')) {
74 75 this.siblings().setSelected(false);
75   - this.find('input').attr('checked', 'checked');
  76 + input.attr('checked', 'checked');
76 77 }
77 78 },
78 79 setEnabled: function(bool) {

0 comments on commit 9d1822e

Please sign in to comment.
Something went wrong with that request. Please try again.