Skip to content

Commit

Permalink
[4.0] ES6 please: core+keepLive (#21404)
Browse files Browse the repository at this point in the history
* core+keepLive

* Ooops, missing things here

* CS

* fixes
  • Loading branch information
dGrammatiko authored and wilsonge committed Aug 8, 2018
1 parent dc6ff6a commit bd4fb7a
Show file tree
Hide file tree
Showing 14 changed files with 1,284 additions and 1,319 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public static function featured($value = 0, $i, $canChange = true)

if ($canChange)
{
$html = '<a href="#" onclick="return listItemTask(\'cb' . $i . '\',\'' . $state[1] . '\')" class="tbody-icon hasTooltip'
$html = '<a href="#" onclick="return Joomla.listItemTask(\'cb' . $i . '\',\'' . $state[1] . '\')" class="tbody-icon hasTooltip'
. ($value == 1 ? ' active' : '') . '" title="' . HTMLHelper::_('tooltipText', $state[3])
. '"><span class="icon-' . $icon . '" aria-hidden="true"></span></a>';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function featured($value = 0, $i, $canChange = true)

if ($canChange)
{
$html = '<a href="#" onclick="return listItemTask(\'cb' . $i . '\',\'' . $state[1] . '\')" class="tbody-icon hasTooltip'
$html = '<a href="#" onclick="return Joomla.listItemTask(\'cb' . $i . '\',\'' . $state[1] . '\')" class="tbody-icon hasTooltip'
. ($value == 1 ? ' active' : '') . '" title="' . HTMLHelper::_('tooltipText', $state[3])
. '"><span class="icon-' . $icon . '" aria-hidden="true"></span></a>';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@
<td>
<?php if ($item->keep_forever) : ?>
<a class="btn btn-secondary btn-xs active" rel="tooltip" href="javascript:void(0);"
onclick="return listItemTask('cb<?php echo $i; ?>','history.keep')"
onclick="return Joomla.listItemTask('cb<?php echo $i; ?>','history.keep')"
data-original-title="<?php echo Text::_('COM_CONTENTHISTORY_BUTTON_KEEP_TOGGLE_OFF'); ?>">
<?php echo Text::_('JYES'); ?>&nbsp;<span class="icon-lock" aria-hidden="true"></span>
</a>
<?php else : ?>
<a class="btn btn-secondary btn-xs active" rel="tooltip" href="javascript:void(0);"
onclick="return listItemTask('cb<?php echo $i; ?>','history.keep')"
onclick="return Joomla.listItemTask('cb<?php echo $i; ?>','history.keep')"
data-original-title="<?php echo Text::_('COM_CONTENTHISTORY_BUTTON_KEEP_TOGGLE_ON'); ?>">
<?php echo Text::_('JNO'); ?>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static function status($i, $value = 0, $canChange = false)

if ($canChange)
{
$html = '<a href="#" onclick="return listItemTask(\'cb' . $i . '\',\'' . $state[1] . '\')" class="btn btn-xs hasTooltip'
$html = '<a href="#" onclick="return Joomla.listItemTask(\'cb' . $i . '\',\'' . $state[1] . '\')" class="btn btn-xs hasTooltip'
. ($value == 1 ? ' active' : '') . '" title="' . HTMLHelper::_('tooltipText', $state[3]) . '"><span class="icon-'
. $icon . '" aria-hidden="true"></span></a>';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function published($value = 0, $i = null, $canChange = true)

if ($canChange)
{
$html = '<a href="#" onclick="return listItemTask(\'cb' . $i . '\',\'' . $state[1] . '\')" class="tbody-icon hasTooltip'
$html = '<a href="#" onclick="return Joomla.listItemTask(\'cb' . $i . '\',\'' . $state[1] . '\')" class="tbody-icon hasTooltip'
. ($value == 1 ? ' active' : '') . '" title="' . HTMLHelper::_('tooltipText', $state[3])
. '"><span class="icon-' . $icon . '" aria-hidden="true"></span></a>';
}
Expand Down
Loading

0 comments on commit bd4fb7a

Please sign in to comment.