32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-12-26 01:57:30 +00:00

Remove not required code in j4

This commit is contained in:
George Wilson 2019-09-05 15:57:42 +01:00 committed by GitHub
parent 2be3dec52a
commit 25fa454c98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,17 +22,6 @@ $assoc = JLanguageAssociations::isEnabled();
// Fieldsets to not automatically render by /layouts/joomla/edit/params.php // Fieldsets to not automatically render by /layouts/joomla/edit/params.php
$this->ignore_fieldsets = array('details', 'images', 'item_associations', 'jmetadata'); $this->ignore_fieldsets = array('details', 'images', 'item_associations', 'jmetadata');
// TODO: Check with Dimtris - I don't believe this is required anymore in combination with the `form-validate` class
//JFactory::getDocument()->addScriptDeclaration("
// Joomla.submitbutton = function(task)
// {
// if (task == 'weblink.cancel' || document.formvalidator.isValid(document.getElementById('weblink-form'))) {
// " . $this->form->getField('description')->save() . "
// Joomla.submitform(task, document.getElementById('weblink-form'));
// }
// };
//");
// In case of modal // In case of modal
$isModal = $input->get('layout') == 'modal' ? true : false; $isModal = $input->get('layout') == 'modal' ? true : false;
$layout = $isModal ? 'modal' : 'edit'; $layout = $isModal ? 'modal' : 'edit';