public function ajaxShowRepeatOption() { //CFactory::load( 'libraries' , 'events' ); $header = JText::_('COM_COMMUNITY_EVENTS_REPEAT'); $message = CEvents::getEventRepeatSaveHTML(); $selected = 'joms.jQuery(\'input:radio[name=repeattype]:checked\').val()'; $action = '<button class="btn" onclick="joms.jQuery(\'#repeataction\').val(' . $selected . ');joms.jQuery(\'#createEvent\').submit()">' . JText::_('COM_COMMUNITY_SAVE_BUTTON') . '</button><br>'; $objResponse = new JAXResponse(); $objResponse->addAssign('cwin_logo', 'innerHTML', $header); $objResponse->addScriptCall('cWindowAddContent', $message, $action); return $objResponse->sendResponse(); }