mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 03:19:56 +01:00
Use 'a' tag so nextmatch action can pick it up
This commit is contained in:
parent
74a15d8396
commit
a46264ace3
@ -62,11 +62,12 @@ var et2_vfs = et2_valueWidget.extend([et2_IDetachedDOM], {
|
||||
this._make_path(path_parts);
|
||||
|
||||
// Make it clickable
|
||||
var data = {path: path, type: this.egw().get_mime_info(_value.mime) ? _value.mime : this.DIR_MIME_TYPE }
|
||||
var type = this.egw().get_mime_info(_value.mime) ? _value.mime : this.DIR_MIME_TYPE;
|
||||
jQuery("li",this.span).addClass("et2_clickable et2_link")
|
||||
.click({data:data, egw: this.egw()}, function(e) {
|
||||
e.data.egw.open(e.data.data, "file");
|
||||
});
|
||||
.wrapInner('<a onclick="egw.open({path:\''+
|
||||
egw.encodePath(path.replace('"','"').replace("'", "\\\'"))+
|
||||
'\',type:\''+type+'\'},\'file\');">'
|
||||
);
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user