33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2025-01-10 17:24:39 +00:00

Merge pull request #82 from dgt41/patch-1

Remove mootools
This commit is contained in:
Michael Babker 2015-05-05 19:59:01 -04:00
commit 9e5c274e3c
2 changed files with 9 additions and 9 deletions

View File

@ -8,8 +8,7 @@
/** @type \PatchTester\View\Pulls\PullsHtmlView $this */
\JHtml::_('behavior.tooltip');
\JHtml::_('behavior.modal');
\JHtml::_('bootstrap.tooltip');
\JHtml::_('formbehavior.chosen', 'select');
\JHtml::_('stylesheet', 'com_patchtester/octicons.css', array(), true);
@ -22,10 +21,10 @@ $sortFields = $this->getSortFields();
if (count($this->envErrors)) :
$this->loadTemplate('errors');
else :
?>
<script type="text/javascript">
\JFactory::getDocument()->addScriptDeclaration(
"
var submitpatch = function (task, id) {
document.id('pull_id').set('value', id);
document.getElementById('pull_id').set('value', id);
return Joomla.submitbutton(task);
}
@ -33,7 +32,7 @@ else :
table = document.getElementById('sortTable');
direction = document.getElementById('directionTable');
order = table.options[table.selectedIndex].value;
if (order != '<?php echo $listOrder; ?>') {
if (order != '" . $listOrder . "') {
dirn = 'asc';
} else {
dirn = direction.options[direction.selectedIndex].value;
@ -41,8 +40,9 @@ else :
Joomla.tableOrdering(order, dirn, '');
}
</script>
"
);
?>
<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="filter-bar" class="btn-toolbar">

View File

@ -20,7 +20,7 @@ foreach ($this->items as $i => $item) :
<?php echo $item->pull_id; ?>
</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 class="center">
<a class="btn btn-small btn-info" href="<?php echo $item->pull_url; ?>" target="_blank">