diff --git a/administrator/templates/hathor/html/com_patchtester/pulls/default.php b/administrator/templates/hathor/html/com_patchtester/pulls/default.php index ea24129..f58954c 100644 --- a/administrator/templates/hathor/html/com_patchtester/pulls/default.php +++ b/administrator/templates/hathor/html/com_patchtester/pulls/default.php @@ -8,50 +8,109 @@ defined('_JEXEC') or die; -JHtml::_('behavior.tooltip'); -JHtml::_('behavior.modal'); +JHtml::_('behavior.core'); +JHtml::_('bootstrap.tooltip'); $listOrder = $this->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(); -?> - + 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, ''); + } + " +); + +JFactory::getDocument()->addStyleDeclaration( + ' + .icon-48-patchtester { background-image:url("/media/com_patchtester/images/icon-48-patchtester.png"); } + ' +); +echo JHtmlBootstrap::renderModal( + 'modal-refresh', array( + 'url' => JUri::root() . 'administrator/index.php?option=com_patchtester&view=fetch&tmpl=component', + 'title' => JText::_('COM_PATCHTESTER_TOOLBAR_FETCH_DATA'), + 'width' => '800px', + 'height' => '300px' + ) +); +?>