Missing the alert "Please first make a selection from the list" in the frontend list view on any TOOLBAR BUTTON TASK.
fix on file ROOT\administrator\components\com_component\dom\html.php:
find: /* hack */
protected function jsCommand()
{
//When a static link is set : No JS execution
if (!empty($this->route))
return;
$cmd = '';
$version = new JVersion;
if ($this->jVersion('2.5'))
$jinput = JFactory::getApplication()->input;
else
$jinput = new JInput;
$task = $this->getTaskExec();
$checkList = false;
//Grid task
if (is_numeric($this->num))
{
$cmd = "listItemTask('cb" . (int)$this->num . "', '" . $this->getTaskExec(true) . "')";
//Embed in a test to check if an item is checked
if (isset($this->list) && $this->list)
$checkList = true;
}
//Toolbar task button
else if (!empty($task))
{
$taskCtrl = $this->getTaskExec(true);
$cmd = "Joomla.";
//Check if opened in modal
if ($jinput->get('tmpl') == 'component')
$cmd .= "submitformAjax";
else
$cmd .= "submitform";
$cmd = "return " . $cmd . "('" . $taskCtrl . "');";
/* hack */
$excludedTasks = array('cancel', 'add', 'save', 'save2new', 'save2copy', 'apply');
if(!in_array($task, $excludedTasks)){
$checkList = true;
}
/* hack */
//Because there is no other place for it...
switch($task)
{
case 'delete':
$this->alertConfirm = JText::_('JDOM_ALERT_ASK_BEFORE_REMOVE');
break;
case 'trash':
$this->alertConfirm = JText::_('JDOM_ALERT_ASK_BEFORE_TRASH');
break;
}
}
if (empty($cmd))
return;
//Embed in a confirmation alert box
if (isset($this->alertConfirm) && $this->alertConfirm)
{
$cmd = "if (window.confirm('" . addslashes($this->JText($this->alertConfirm)) . "')){"
. $cmd
. "}";
}
//Embed in a test to check if an item is checked
if ($checkList)
{
$msgList = JText::sprintf('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST', $task);
$cmd = "if (document.adminForm.boxchecked.value==0){"
. "alert('" . addslashes($msgList) ."');"
. "}else{"
. $cmd
. "}";
}
$this->link_js = $cmd;
}