mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
* Filemanager: fixed create directory icon in list and select popup, clicking on favorites in select popup
This commit is contained in:
parent
4d34079576
commit
d7f69a6a32
@ -462,7 +462,7 @@ app.classes.filemanager = AppJS.extend(
|
|||||||
/**
|
/**
|
||||||
* Prompt user for directory to create
|
* Prompt user for directory to create
|
||||||
*
|
*
|
||||||
* @param {egwAction|undefined} action Action, or undefined if called directly
|
* @param {egwAction|undefined|jQuery.Event} action Action, event or undefined if called directly
|
||||||
* @param {egwActionObject[] | undefined} selected Selected row, or undefined if called directly
|
* @param {egwActionObject[] | undefined} selected Selected row, or undefined if called directly
|
||||||
*/
|
*/
|
||||||
createdir: function(action, selected)
|
createdir: function(action, selected)
|
||||||
@ -471,8 +471,8 @@ app.classes.filemanager = AppJS.extend(
|
|||||||
|
|
||||||
if (dir)
|
if (dir)
|
||||||
{
|
{
|
||||||
var path = this.get_path(action.parent.data.nextmatch.getInstanceManager().uniqueId || false);
|
var path = this.get_path(action && action.parent ? action.parent.data.nextmatch.getInstanceManager().uniqueId : false);
|
||||||
if(action)
|
if(action && action instanceof egwAction)
|
||||||
{
|
{
|
||||||
var paths = this._elems2paths(selected);
|
var paths = this._elems2paths(selected);
|
||||||
if(paths[0]) path = paths[0];
|
if(paths[0]) path = paths[0];
|
||||||
@ -764,7 +764,7 @@ app.classes.filemanager = AppJS.extend(
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (widget.value.is_dir)
|
else if (widget.value.mime == 'httpd/unix-directory')
|
||||||
{
|
{
|
||||||
var path = null;
|
var path = null;
|
||||||
// Cannot do this, there are multiple widgets named path
|
// Cannot do this, there are multiple widgets named path
|
||||||
|
Loading…
Reference in New Issue
Block a user