mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-01-27 22:38:28 +00:00
Remove unneeded jquery .ready()
This commit is contained in:
parent
ceed4b3be0
commit
0af2158525
@ -15,15 +15,14 @@ JHtml::_('behavior.formvalidator');
|
|||||||
JHtml::_('formbehavior.chosen', 'select');
|
JHtml::_('formbehavior.chosen', 'select');
|
||||||
|
|
||||||
JFactory::getDocument()->addScriptDeclaration("
|
JFactory::getDocument()->addScriptDeclaration("
|
||||||
jQuery(document).ready(function() {
|
|
||||||
Joomla.submitbutton = function(task)
|
Joomla.submitbutton = function(task)
|
||||||
{
|
{
|
||||||
if (task == 'weblink.cancel' || document.formvalidator.isValid(document.getElementById('weblink-form'))) {
|
if (task == 'weblink.cancel' || document.formvalidator.isValid(document.getElementById('weblink-form'))) {
|
||||||
" . $this->form->getField('description')->save() . "
|
" . $this->form->getField('description')->save() . "
|
||||||
Joomla.submitform(task, document.getElementById('weblink-form'));
|
Joomla.submitform(task, document.getElementById('weblink-form'));
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
});");
|
");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form action="<?php echo JRoute::_('index.php?option=com_weblinks&layout=edit&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="weblink-form" class="form-validate">
|
<form action="<?php echo JRoute::_('index.php?option=com_weblinks&layout=edit&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="weblink-form" class="form-validate">
|
||||||
|
@ -29,7 +29,6 @@ if ($saveOrder)
|
|||||||
$sortFields = $this->getSortFields();
|
$sortFields = $this->getSortFields();
|
||||||
|
|
||||||
JFactory::getDocument()->addScriptDeclaration('
|
JFactory::getDocument()->addScriptDeclaration('
|
||||||
jQuery(document).ready(function() {
|
|
||||||
Joomla.orderTable = function()
|
Joomla.orderTable = function()
|
||||||
{
|
{
|
||||||
table = document.getElementById("sortTable");
|
table = document.getElementById("sortTable");
|
||||||
@ -44,8 +43,8 @@ jQuery(document).ready(function() {
|
|||||||
dirn = direction.options[direction.selectedIndex].value;
|
dirn = direction.options[direction.selectedIndex].value;
|
||||||
}
|
}
|
||||||
Joomla.tableOrdering(order, dirn, "");
|
Joomla.tableOrdering(order, dirn, "");
|
||||||
}
|
};
|
||||||
});');
|
');
|
||||||
?>
|
?>
|
||||||
<form action="<?php echo JRoute::_('index.php?option=com_weblinks&view=weblinks'); ?>" method="post" name="adminForm" id="adminForm">
|
<form action="<?php echo JRoute::_('index.php?option=com_weblinks&view=weblinks'); ?>" method="post" name="adminForm" id="adminForm">
|
||||||
<?php if (!empty( $this->sidebar)) : ?>
|
<?php if (!empty( $this->sidebar)) : ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user