mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 18:31:37 +02:00
Handle filemanager links
This commit is contained in:
parent
0e06fe0d64
commit
eb14b81d51
@ -1515,11 +1515,19 @@ var et2_link_string = (function(){ "use strict"; return expose(et2_valueWidget.e
|
|||||||
.appendTo(this.list)
|
.appendTo(this.list)
|
||||||
.addClass("et2_link loading")
|
.addClass("et2_link loading")
|
||||||
.click( function(e){
|
.click( function(e){
|
||||||
|
var fe = egw.link_get_registry('filemanager-editor');
|
||||||
if (self.options.expose_view && typeof _link_data.type !='undefined'
|
if (self.options.expose_view && typeof _link_data.type !='undefined'
|
||||||
&& _link_data.type.match(self.mime_regexp,'ig'))
|
&& _link_data.type.match(self.mime_regexp,'ig'))
|
||||||
{
|
{
|
||||||
self._init_blueimp_gallery(e, _link_data);
|
self._init_blueimp_gallery(e, _link_data);
|
||||||
}
|
}
|
||||||
|
else if(typeof _link_data.type !='undefined' && fe && fe.mime && fe.mime[_link_data.type])
|
||||||
|
{
|
||||||
|
egw.open_link(egw.link('/index.php', {
|
||||||
|
menuaction: fe.edit.menuaction,
|
||||||
|
path: egw().mime_open(_link_data).url.replace('/webdav.php','')
|
||||||
|
}), '', fe.edit_popup);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
self.egw().open(_link_data, "", "view",null,_link_data.app,_link_data.app);
|
self.egw().open(_link_data, "", "view",null,_link_data.app,_link_data.app);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user