<?php /** * @package Sven.Bluege * @subpackage com_eventgallery * * @copyright Copyright (C) 2005 - 2019 Sven Bluege All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die('Restricted access'); JFactory::getDocument()->addScriptDeclaration(" Joomla.submitbutton = function(task) { if (task.indexOf('.cancel')>0 || document.formvalidator.isValid(document.getElementById('adminForm'))) { Joomla.submitform(task, document.getElementById('adminForm')); } }; "); ?> <form class="form-validate" action="<?php echo JRoute::_('index.php?option=com_eventgallery&layout=edit&id='.(int) $this->item->id); ?>" method="POST" name="adminForm" id="adminForm"> <?php echo $this->loadSnippet('formfields'); ?> <?php echo JHtml::_('form.token'); ?> <input type="hidden" name="option" value="com_eventgallery" /> <input type="hidden" name="id" value="<?php echo $this->item->id; ?>" /> <input type="hidden" name="task" value="" /> </form>