From d9031c4c2e791a21b8d3124dfb65696caa4508f3 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 17 Nov 2016 11:36:12 +0100 Subject: [PATCH] Implement tooltip preview for mime types icons which have preview content available --- api/js/etemplate/et2_widget_vfs.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/js/etemplate/et2_widget_vfs.js b/api/js/etemplate/et2_widget_vfs.js index 6cf90130d8..a0924b90b2 100644 --- a/api/js/etemplate/et2_widget_vfs.js +++ b/api/js/etemplate/et2_widget_vfs.js @@ -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 ''; + } + }); + } } // add/remove link icon, if file is (not) a symlink if ((_value.mode & et2_vfsMode.prototype.types.l) == et2_vfsMode.prototype.types.l)