input; $assoc = JLanguageAssociations::isEnabled(); JFactory::getDocument()->addScriptDeclaration(" Joomla.submitbutton = function(task) { if (task == 'newsfeed.cancel' || document.formvalidator.isValid(document.getElementById('newsfeed-form'))) { if (window.opener && (task == 'newsfeed.save' || task == 'newsfeed.cancel')) { window.opener.document.closeEditWindow = self; window.opener.setTimeout('window.document.closeEditWindow.close()', 1000); } Joomla.submitform(task, document.getElementById('newsfeed-form')); } }; "); ?>