From 5ca5795016024e8c28b4e37ebe29f74be29db0ee Mon Sep 17 00:00:00 2001 From: Michael Babker Date: Sat, 9 May 2015 12:19:49 -0400 Subject: [PATCH] Some tweaks on the Hathor layouts --- .../html/com_patchtester/pulls/default.php | 72 ++++++------------- .../com_patchtester/pulls/default_items.php | 13 ++-- 2 files changed, 28 insertions(+), 57 deletions(-) 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( ?>
-
- +
- + - + @@ -107,7 +79,7 @@ echo JHtmlBootstrap::renderModal( - + diff --git a/administrator/templates/hathor/html/com_patchtester/pulls/default_items.php b/administrator/templates/hathor/html/com_patchtester/pulls/default_items.php index 7fb077b..4276275 100644 --- a/administrator/templates/hathor/html/com_patchtester/pulls/default_items.php +++ b/administrator/templates/hathor/html/com_patchtester/pulls/default_items.php @@ -1,14 +1,13 @@ items as $i => $item) : $status = ''; @@ -39,19 +38,19 @@ foreach ($this->items as $i => $item) : applied) : ?> - + - + applied) : - echo '' . JText::_('COM_PATCHTESTER_REVERT_PATCH') . ''; + echo '' . \JText::_('COM_PATCHTESTER_REVERT_PATCH') . ''; else : - echo '' . JText::_('COM_PATCHTESTER_APPLY_PATCH') . ''; + echo '' . \JText::_('COM_PATCHTESTER_APPLY_PATCH') . ''; endif; ?>