Delete a record in MATE in view page
function showDeleteOnView($colName,$value,$row)
{
return '<a href="javascript: '. $this->mateInstances[0] .'.confirmDeleteRow(\''.$row['id'].'\');" title="Delete">Delete id <b>'.$row['id'].'</b></a>';
}
function refreshAfterDelete($id, $col, $row)
{
$this->Editor->updateHtml();
}
$this->Editor->setConfig('afterDeleteFun',array(&$this,'refreshAfterDelete'));
Comments