mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:31 +01:00
fix conflict
This commit is contained in:
parent
aa36f75032
commit
440815a9c6
@ -1456,109 +1456,4 @@ class filemanager_ui
|
||||
}
|
||||
return $mode;
|
||||
}
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
/**
|
||||
* Editor for odf files
|
||||
*
|
||||
* @param array $content
|
||||
*/
|
||||
function editor($content=null)
|
||||
{
|
||||
$tmpl = new Etemplate('filemanager.editor');
|
||||
$file_path = $_GET['path'];
|
||||
$paths = explode('/webdav.php', $file_path);
|
||||
// Include css files used by wodocollabeditor
|
||||
Api\Framework::includeCSS('/api/js/webodf/collab/app/resources/app.css');
|
||||
Api\Framework::includeCSS('/api/js/webodf/collab/wodocollabpane.css');
|
||||
Api\Framework::includeCSS('/api/js/webodf/collab/wodotexteditor.css');
|
||||
Api\Framework::includeJS('/filemanager/js/collab.js',null, 'filemanager');
|
||||
|
||||
if (!$content)
|
||||
{
|
||||
if ($file_path)
|
||||
{
|
||||
$content['es_id'] = md5 ($file_path);
|
||||
$content['file_path'] = $paths[1];
|
||||
}
|
||||
else
|
||||
{
|
||||
$content = array();
|
||||
}
|
||||
}
|
||||
|
||||
$actions = self::getActions_edit();
|
||||
if (!Api\Vfs::check_access($paths[1], Api\Vfs::WRITABLE))
|
||||
{
|
||||
unset ($actions['save']);
|
||||
unset ($actions['discard']);
|
||||
unset ($actions['delete']);
|
||||
}
|
||||
$tmpl->setElementAttribute('tools', 'actions', $actions);
|
||||
$preserve = $content;
|
||||
$tmpl->exec('filemanager.filemanager_ui.editor',$content,array(),array(),$preserve,2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Editor dialog's toolbar actions
|
||||
*
|
||||
* @return array return array of actions
|
||||
*/
|
||||
static function getActions_edit()
|
||||
{
|
||||
$group = 0;
|
||||
$actions = array (
|
||||
'save' => array(
|
||||
'caption' => 'Save',
|
||||
'icon' => 'apply',
|
||||
'group' => ++$group,
|
||||
'onExecute' => 'javaScript:app.filemanager.editor_save',
|
||||
'allowOnMultiple' => false,
|
||||
'toolbarDefault' => true
|
||||
),
|
||||
'new' => array(
|
||||
'caption' => 'New',
|
||||
'icon' => 'add',
|
||||
'group' => ++$group,
|
||||
'onExecute' => 'javaScript:app.filemanager.editor_new',
|
||||
'allowOnMultiple' => false,
|
||||
'toolbarDefault' => true
|
||||
),
|
||||
'close' => array(
|
||||
'caption' => 'Close',
|
||||
'icon' => 'close',
|
||||
'group' => ++$group,
|
||||
'onExecute' => 'javaScript:app.filemanager.editor_close',
|
||||
'allowOnMultiple' => false,
|
||||
'toolbarDefault' => true
|
||||
),
|
||||
'saveas' => array(
|
||||
'caption' => 'Save As',
|
||||
'icon' => 'save_all',
|
||||
'group' => ++$group,
|
||||
'onExecute' => 'javaScript:app.filemanager.editor_save',
|
||||
'allowOnMultiple' => false,
|
||||
'toolbarDefault' => true
|
||||
),
|
||||
'delete' => array(
|
||||
'caption' => 'Delete',
|
||||
'icon' => 'delete',
|
||||
'group' => ++$group,
|
||||
'onExecute' => 'javaScript:app.filemanager.editor_delete',
|
||||
'allowOnMultiple' => false,
|
||||
'toolbarDefault' => false
|
||||
),
|
||||
'discard' => array(
|
||||
'caption' => 'Discard',
|
||||
'icon' => 'delete',
|
||||
'group' => ++$group,
|
||||
'onExecute' => 'javaScript:app.filemanager.editor_discard',
|
||||
'allowOnMultiple' => false,
|
||||
'toolbarDefault' => false
|
||||
)
|
||||
);
|
||||
return $actions;
|
||||
}
|
||||
>>>>>>> 8325dd8... allow to open symlinks to directories like directories
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user