diff --git a/administrator/components/com_users/views/note/tmpl/edit.php b/administrator/components/com_users/views/note/tmpl/edit.php index fb2fbabcd52a8..7b925fd607918 100644 --- a/administrator/components/com_users/views/note/tmpl/edit.php +++ b/administrator/components/com_users/views/note/tmpl/edit.php @@ -12,15 +12,17 @@ JHtml::_('behavior.formvalidator'); JHtml::_('formbehavior.chosen', 'select'); -JFactory::getDocument()->addScriptDeclaration(" +JFactory::getDocument()->addScriptDeclaration(' +jQuery(document).ready(function() { Joomla.submitbutton = function(task) { - if (task == 'note.cancel' || document.formvalidator.isValid(document.getElementById('note-form'))) + if (task == "note.cancel" || document.formvalidator.isValid(document.getElementById("note-form"))) { - Joomla.submitform(task, document.getElementById('note-form')); + ' . $this->form->getField('body')->save() . ' + Joomla.submitform(task, document.getElementById("note-form")); } - }; -"); + } +});'); ?>