mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-01-25 16:18:26 +00:00
commit
9e5c274e3c
@ -8,8 +8,7 @@
|
|||||||
|
|
||||||
/** @type \PatchTester\View\Pulls\PullsHtmlView $this */
|
/** @type \PatchTester\View\Pulls\PullsHtmlView $this */
|
||||||
|
|
||||||
\JHtml::_('behavior.tooltip');
|
\JHtml::_('bootstrap.tooltip');
|
||||||
\JHtml::_('behavior.modal');
|
|
||||||
\JHtml::_('formbehavior.chosen', 'select');
|
\JHtml::_('formbehavior.chosen', 'select');
|
||||||
|
|
||||||
\JHtml::_('stylesheet', 'com_patchtester/octicons.css', array(), true);
|
\JHtml::_('stylesheet', 'com_patchtester/octicons.css', array(), true);
|
||||||
@ -22,10 +21,10 @@ $sortFields = $this->getSortFields();
|
|||||||
if (count($this->envErrors)) :
|
if (count($this->envErrors)) :
|
||||||
$this->loadTemplate('errors');
|
$this->loadTemplate('errors');
|
||||||
else :
|
else :
|
||||||
?>
|
\JFactory::getDocument()->addScriptDeclaration(
|
||||||
<script type="text/javascript">
|
"
|
||||||
var submitpatch = function (task, id) {
|
var submitpatch = function (task, id) {
|
||||||
document.id('pull_id').set('value', id);
|
document.getElementById('pull_id').set('value', id);
|
||||||
return Joomla.submitbutton(task);
|
return Joomla.submitbutton(task);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,7 +32,7 @@ else :
|
|||||||
table = document.getElementById('sortTable');
|
table = document.getElementById('sortTable');
|
||||||
direction = document.getElementById('directionTable');
|
direction = document.getElementById('directionTable');
|
||||||
order = table.options[table.selectedIndex].value;
|
order = table.options[table.selectedIndex].value;
|
||||||
if (order != '<?php echo $listOrder; ?>') {
|
if (order != '" . $listOrder . "') {
|
||||||
dirn = 'asc';
|
dirn = 'asc';
|
||||||
} else {
|
} else {
|
||||||
dirn = direction.options[direction.selectedIndex].value;
|
dirn = direction.options[direction.selectedIndex].value;
|
||||||
@ -41,8 +40,9 @@ else :
|
|||||||
|
|
||||||
Joomla.tableOrdering(order, dirn, '');
|
Joomla.tableOrdering(order, dirn, '');
|
||||||
}
|
}
|
||||||
</script>
|
"
|
||||||
|
);
|
||||||
|
?>
|
||||||
<form action="<?php echo \JRoute::_('index.php?option=com_patchtester&view=pulls'); ?>" method="post" name="adminForm" id="adminForm">
|
<form action="<?php echo \JRoute::_('index.php?option=com_patchtester&view=pulls'); ?>" method="post" name="adminForm" id="adminForm">
|
||||||
<div id="j-main-container">
|
<div id="j-main-container">
|
||||||
<div id="filter-bar" class="btn-toolbar">
|
<div id="filter-bar" class="btn-toolbar">
|
||||||
|
@ -20,7 +20,7 @@ foreach ($this->items as $i => $item) :
|
|||||||
<?php echo $item->pull_id; ?>
|
<?php echo $item->pull_id; ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span class="hasTip" title="<strong>Info</strong><br/><?php echo $this->escape(\JHtml::_('string.truncateComplex', $item->description, 50)); ?>"><?php echo $this->escape($item->title); ?></span>
|
<span class="hasTooltip" title="<strong>Info</strong><br/><?php echo $this->escape(\JHtml::_('string.truncateComplex', $item->description, 50)); ?>"><?php echo $this->escape($item->title); ?></span>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<a class="btn btn-small btn-info" href="<?php echo $item->pull_url; ?>" target="_blank">
|
<a class="btn btn-small btn-info" href="<?php echo $item->pull_url; ?>" target="_blank">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user