mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
using egw_framework::opener_refresh|window_close and some other small fixes
This commit is contained in:
parent
1c4f65120c
commit
8e2d5d0985
@ -134,8 +134,7 @@ class filemanager_ui
|
||||
'caption' => lang('Edit settings'),
|
||||
'group' => $group,
|
||||
'allowOnMultiple' => false,
|
||||
'url' => 'menuaction=filemanager.filemanager_ui.file&path=$id',
|
||||
'popup' => '495x425',
|
||||
'onExecute' => 'javaScript:app.filemanager.editprefs',
|
||||
),
|
||||
'mail' => array(
|
||||
'caption' => lang('Mail files'),
|
||||
@ -1047,12 +1046,8 @@ class filemanager_ui
|
||||
}
|
||||
}
|
||||
}
|
||||
$js = "opener.egw_refresh('".str_replace("'","\\'",$msg)."','filemanager','".
|
||||
str_replace("'","\\'",$refresh_path ? $refresh_path : $path)."','edit',null,/&path=[^&]*/);";
|
||||
|
||||
if ($button == 'save') $js .= "window.close();";
|
||||
echo "<html>\n<body>\n<script>\n$js\n</script>\n</body>\n</html>\n";
|
||||
if ($button == 'save') common::egw_exit();
|
||||
egw_framework::refresh_opener($msg, 'filemanager', $refresh_path ? $refresh_path : $path, 'edit', null, '&path=[^&]*');
|
||||
if ($button == 'save') egw_framework::window_close(true); // true = call common::egw_exit();
|
||||
}
|
||||
if ($content['is_link'] && !egw_vfs::stat($path))
|
||||
{
|
||||
|
@ -457,10 +457,13 @@ app.filemanager = AppJS.extend(
|
||||
|
||||
/**
|
||||
* Edit prefs of current directory
|
||||
*
|
||||
* @param _action
|
||||
* @param _senders
|
||||
*/
|
||||
editprefs: function()
|
||||
editprefs: function(_action, _senders)
|
||||
{
|
||||
var path = this.path_widget.getValue();
|
||||
var path = typeof _senders != 'undefined' ? this.id2path(_senders[0].id) : this.path_widget.getValue();
|
||||
|
||||
egw().open_link(egw.link('/index.php', {
|
||||
menuaction: 'filemanager.filemanager_ui.file',
|
||||
|
@ -278,7 +278,7 @@
|
||||
<button label="Apply" id="button[apply]"/>
|
||||
<buttononly label="Cancel" id="button[cancel]" onclick="window.close();"/>
|
||||
</hbox>
|
||||
<buttononly align="right" statustext="Enter setup user and password to get root rights" label="Superuser" id="sudo" onclick="set_style_by_class('fieldset','superuser','display','inline'); document.getElementById(form::name('sudo[user]')).focus();"/>
|
||||
<buttononly align="right" statustext="Enter setup user and password to get root rights" label="Superuser" id="sudo" onclick="\$j('.superuser').css('display','inline'); document.getElementById(form::name('sudo[user]')).focus();"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -72,7 +72,7 @@
|
||||
</hbox>
|
||||
</template>
|
||||
<template id="filemanager.index" template="" lang="" group="0" version="1.9.003">
|
||||
<description id="msg" class="redItalic"/>
|
||||
<description id="msg" class="message"/>
|
||||
<nextmatch id="nm" template="filemanager.index.rows" header_left="filemanager.index.header_left"/>
|
||||
<styles>
|
||||
input[type='file'] {
|
||||
|
Loading…
Reference in New Issue
Block a user