// Removing first confirm message on deleting a category

This commit is contained in:
mDeflotte
2012-01-24 09:05:31 +00:00
parent 44aa7f8ee5
commit e7e75b112c
4 changed files with 30 additions and 13 deletions
+9 -5
View File
@@ -94,7 +94,7 @@ class HelperListCore extends Helper
public $list_skip_actions = array();
public $bulk_actions = false;
public $specificConfirmDelete;
public $specificConfirmDelete = null;
public $colorOnBackground;
/** @var bool If true, activates color on hover */
@@ -464,12 +464,16 @@ class HelperListCore extends Helper
if (!is_null($name))
$name = '\n\n'.self::$cache_lang['Name'].' '.$name;
$tpl->assign(array_merge($this->tpl_delete_link_vars, array(
$data = array(
'href' => $this->currentIndex.'&'.$this->identifier.'='.$id.'&delete'.$this->table.'&token='.($token != null ? $token : $this->token),
'confirm' => (!is_null($this->specificConfirmDelete) ? '\r'.$this->specificConfirmDelete : self::$cache_lang['DeleteItem'].$name),
'action' => self::$cache_lang['Delete'],
'id' => $id,
)));
'id' => $id
);
if ($this->specificConfirmDelete !== false)
$data['confirm'] = !is_null($this->specificConfirmDelete) ? '\r'.$this->specificConfirmDelete : self::$cache_lang['DeleteItem'].$name;
$tpl->assign(array_merge($this->tpl_delete_link_vars, $data));
return $tpl->fetch();
}