diff --git a/administrator/templates/hathor/html/com_patchtester/pulls/default.php b/administrator/templates/hathor/html/com_patchtester/pulls/default.php index f58954c..097ad07 100644 --- a/administrator/templates/hathor/html/com_patchtester/pulls/default.php +++ b/administrator/templates/hathor/html/com_patchtester/pulls/default.php @@ -1,42 +1,29 @@ escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $filterApplied = $this->escape($this->state->get('filter.applied')); $sortFields = $this->getSortFields(); -JFactory::getDocument()->addScriptDeclaration( +\JFactory::getDocument()->addScriptDeclaration( " var submitpatch = function (task, id) { jQuery('#pull_id').val(id); - console.log(id); - task = task.substr(5); return Joomla.submitbutton(task); } - - Joomla.orderTable = function() { - table = document.getElementById('sortTable'); - direction = document.getElementById('directionTable'); - order = table.options[table.selectedIndex].value; - if (order != '" . $listOrder . "') { - dirn = 'asc'; - } else { - dirn = direction.options[direction.selectedIndex].value; - } - - Joomla.tableOrdering(order, dirn, ''); - } " ); @@ -56,49 +43,34 @@ echo JHtmlBootstrap::renderModal( ?>