FIX 7856 Show the Create button as disabled if no pagetypes are available for page creation

This commit is contained in:
jean 2012-09-11 14:56:13 +12:00
parent 02e95adb4c
commit 45819cfba2

View File

@ -55,6 +55,10 @@
}
selectedEl.setSelected(true);
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);
}
});