Merge pull request #199 from patbolo/bugfix/7856

FIX 7856
This commit is contained in:
Ingo Schommer 2012-09-12 02:58:37 -07:00
commit 4462eec7fa

View File

@ -55,6 +55,10 @@
} }
selectedEl.setSelected(true); selectedEl.setSelected(true);
selectedEl.siblings().setSelected(false); selectedEl.siblings().setSelected(false);
// Disable the "Create" button if none of the pagetypes are available
var buttonState = (this.find('#PageType li:not(.disabled)').length) ? 'enable' : 'disable';
this.find('button[name=action_doAdd]').button(buttonState);
} }
}); });