forked from extern/egroupware
Implement tooltip preview for mime types icons which have preview content available
This commit is contained in:
parent
6d472b1592
commit
d9031c4c2e
@ -385,6 +385,17 @@ var et2_vfsMime = (function(){ "use strict"; return expose(et2_valueWidget.exten
|
||||
this.image.css("max-width", "100%");
|
||||
}
|
||||
this.image.attr("src", src);
|
||||
// tooltip for mimetypes with available detailed thumbnail
|
||||
if (_value.mime.match(/application\/vnd\.oasis\.opendocument\.(text|presentation|spreadsheet|chart)/))
|
||||
{
|
||||
this.image.parent().parent().parent().tooltip({
|
||||
items:"img",
|
||||
position: {my:"right top", at:"left top", collision:"flipfit"},
|
||||
content: function(){
|
||||
return '<img src="'+this.src+'&thsize=512"/>';
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
// add/remove link icon, if file is (not) a symlink
|
||||
if ((_value.mode & et2_vfsMode.prototype.types.l) == et2_vfsMode.prototype.types.l)
|
||||
|
Loading…
Reference in New Issue
Block a user