Hi,
I'm looking into changing the default selected option in AddPageOptionsForm for creating new pages.
Is this posible to set in (php) code? I tried some JQuery but that didnt work out.
Behaviour.register({
'#Form_EditForm' : {
initialize : function() {
this.observeMethod('PageLoaded', this.adminPageHandler);
this.adminPageHandler();
},
adminPageHandler : function() {
jQuery("#Form_AddPageOptionsForm_PageType option")
.each(function() {
if (jQuery(this).val() == 'DefaultSelectedPage')
{
jQuery(this).attr('selected', true);
}
});
}
}
});