removed legacy actions column and neccessary $readonlys for them

This commit is contained in:
Ralf Becker 2014-02-14 09:03:47 +00:00
parent efa9c562bb
commit 7d09589f73
2 changed files with 0 additions and 23 deletions

View File

@ -762,21 +762,10 @@ class filemanager_ui
{ {
$dir_is_writable[$dir] = egw_vfs::is_writable($dir); $dir_is_writable[$dir] = egw_vfs::is_writable($dir);
} }
$path_quoted = str_replace(array('"',"'"),array('"',"\\'"),$path);
if (!$dir_is_writable[$dir])
{
$readonlys["delete[$path_quoted]"] = true; // no rights to delete the file
}
if (egw_vfs::is_dir($path)) if (egw_vfs::is_dir($path))
{ {
$readonlys["mail[$path_quoted]"] = true;
$row['class'] = 'isDir'; $row['class'] = 'isDir';
} }
elseif (!egw_vfs::is_readable($path) ||
!$GLOBALS['egw_info']['user']['apps']['felamimail'])
{
$readonlys["mail[$path_quoted]"] = true;
}
$row['download_url'] = egw_vfs::download_url($path); $row['download_url'] = egw_vfs::download_url($path);
$rows[++$n] = $row; $rows[++$n] = $row;
@ -784,7 +773,6 @@ class filemanager_ui
} }
// query comments and cf's for the displayed rows // query comments and cf's for the displayed rows
$cols_to_show = explode(',',$GLOBALS['egw_info']['user']['preferences']['filemanager']['nextmatch-filemanager.index.rows']); $cols_to_show = explode(',',$GLOBALS['egw_info']['user']['preferences']['filemanager']['nextmatch-filemanager.index.rows']);
$cfs = config::get_customfields('filemanager');
$all_cfs = in_array('customfields',$cols_to_show) && $cols_to_show[count($cols_to_show)-1][0] != '#'; $all_cfs = in_array('customfields',$cols_to_show) && $cols_to_show[count($cols_to_show)-1][0] != '#';
if ($path2n && (in_array('comment',$cols_to_show) || in_array('customfields',$cols_to_show)) && if ($path2n && (in_array('comment',$cols_to_show) || in_array('customfields',$cols_to_show)) &&
($path2props = egw_vfs::propfind(array_keys($path2n)))) ($path2props = egw_vfs::propfind(array_keys($path2n))))

View File

@ -14,7 +14,6 @@
<column/> <column/>
<column/> <column/>
<column/> <column/>
<column width="70"/>
</columns> </columns>
<rows> <rows>
<row class="th"> <row class="th">
@ -28,10 +27,6 @@
<nextmatch-sortheader label="Group" id="gid"/> <nextmatch-sortheader label="Group" id="gid"/>
<nextmatch-header label="Comment" id="comment"/> <nextmatch-header label="Comment" id="comment"/>
<nextmatch-customfields id="customfields" readonly="true"/> <nextmatch-customfields id="customfields" readonly="true"/>
<hbox options="0,0">
<nextmatch-header label="Actions" id="legacy_actions"/>
<button align="right" statustext="Check all" label="Check all" id="check_all" needed="1" onclick="egw_globalObjectManager.getObjectById('filemanager.index.rows').toggleAllSelected(); return false;" image="check"/>
</hbox>
</row> </row>
<row class="row $row_cont[class]"> <row class="row $row_cont[class]">
<vfs-mime align="center" id="$row"/> <vfs-mime align="center" id="$row"/>
@ -44,12 +39,6 @@
<vfs-gid id="${row}[gid]" no_lang="1"/> <vfs-gid id="${row}[gid]" no_lang="1"/>
<description id="${row}[comment]"/> <description id="${row}[comment]"/>
<customfields-list id="$row" class="customfields"/> <customfields-list id="$row" class="customfields"/>
<hbox align="right">
<button statustext="Rename, change permissions or ownership" label="Edit settings" id="edit[$row_cont[path]]" onclick="window.open(egw::link('/index.php','menuaction=filemanager.filemanager_ui.file&amp;path=$row_cont[path]'),'fileprefs','dependent=yes,width=495,height=425,scrollbars=yes,status=yes'); return false;" image="edit"/>
<buttononly align="center" id="mail[$row_cont[path]]" onclick="open_mail('$row_cont[path]'); return false;" options="mail_post_to"/>
<button align="center" statustext="Delete this file or directory" label="Delete" id="delete[$row_cont[path]]" onclick="et2_dialog.confirm(widget,'Delete this file or directory','Delete')" image="delete"/>
<checkbox align="right" id="checked[]" options="&quot;$row_cont[path]&quot;"/>
</hbox>
</row> </row>
</rows> </rows>
</grid> </grid>