input; $assoc = JLanguageAssociations::isEnabled(); JFactory::getDocument()->addScriptDeclaration(' Joomla.submitbutton = function(task) { if (task == "category.cancel" || document.formvalidator.isValid(document.getElementById("item-form"))) { ' . $this->form->getField("description")->save() . ' Joomla.submitform(task, document.getElementById("item-form")); } }; '); ?>