fixed missing space when adding multiple classes, causing context menu not recognising readonly, if also not deletable

This commit is contained in:
Ralf Becker 2011-04-28 09:12:30 +00:00
parent 05843ff1d9
commit 8247d55fc1

View File

@ -1326,10 +1326,10 @@ class addressbook_ui extends addressbook_bo
if ($query['filter'] && !($this->grants[(int)$query['filter']] & EGW_ACL_DELETE))
{
$readonlys["delete[$row[id]]"] = true;
$row['class'] .= 'rowNoDelete';
$row['class'] .= 'rowNoDelete ';
}
$readonlys["infolog[$row[id]]"] = !$GLOBALS['egw_info']['user']['apps']['infolog'];
$row['class'] .= 'rowNoEdit'; // no edit in OrgView
$row['class'] .= 'rowNoEdit '; // no edit in OrgView
}
else
{
@ -1348,12 +1348,12 @@ class addressbook_ui extends addressbook_bo
if (!$this->check_perms(EGW_ACL_DELETE,$row) || (!$GLOBALS['egw_info']['user']['apps']['admin'] && $this->config['history'] != 'userpurge' && $query['col_filter']['tid'] == addressbook_so::DELETED_TYPE))
{
$readonlys["delete[$row[id]]"] = true;
$row['class'] .= 'rowNoDelete';
$row['class'] .= 'rowNoDelete ';
}
if (!$this->check_perms(EGW_ACL_EDIT,$row))
{
$readonlys["edit[$row[id]]"] = true;
$row['class'] .= 'rowNoEdit';
$row['class'] .= 'rowNoEdit ';
}
if ($row['photo']) $photos = true;