mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Filemanager - Support sharing directory by right clicking on empty row (No matches found)
This commit is contained in:
parent
890cd4e4a4
commit
c6751c4594
@ -1174,6 +1174,29 @@ app.classes.filemanager = AppJS.extend(
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* create a share-link for the given entry
|
||||
* Overriden from parent to handle empty directories
|
||||
*
|
||||
* @param {egwAction} _action egw actions
|
||||
* @param {egwActionObject[]} _senders selected nm row
|
||||
* @param {egwActionObject} _target Drag source. Not used here.
|
||||
* @param {Boolean} _writable Allow edit access from the share.
|
||||
* @param {Boolean} _files Allow access to files from the share.
|
||||
* @param {Function} _callback Callback with results
|
||||
* @returns {Boolean} returns false if not successful
|
||||
*/
|
||||
share_link: function(_action, _senders, _target, _writable, _files, _callback)
|
||||
{
|
||||
// Check to see if we're in the empty row (No matches found.) and use current path
|
||||
var path = _senders[0].id;
|
||||
if(!path)
|
||||
{
|
||||
_senders[0] = {id: this.get_path()};
|
||||
}
|
||||
this._super.call(this, _action, _senders, _target, _writable, _files, _callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* Share-link callback
|
||||
* @param {object} _data
|
||||
|
Loading…
Reference in New Issue
Block a user