From 06e41356bd40045c2ffd596eb7b933d642eda910 Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 3 Nov 2017 13:07:02 -0600 Subject: [PATCH] Better handling for thumbnail tooltip if not in nextmatch row --- api/js/etemplate/et2_widget_vfs.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_widget_vfs.js b/api/js/etemplate/et2_widget_vfs.js index ed20f540b8..b383a64bc5 100644 --- a/api/js/etemplate/et2_widget_vfs.js +++ b/api/js/etemplate/et2_widget_vfs.js @@ -395,7 +395,12 @@ var et2_vfsMime = (function(){ "use strict"; return expose(et2_valueWidget.exten // 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({ + var tooltip_target = this.image.parent().parent().parent().length > 0 ? + // Nextmatch row + this.image.parent().parent().parent() : + // Not in nextmatch + this.image.parent(); + tooltip_target.tooltip({ items:"img", position: {my:"right top", at:"left top", collision:"flipfit"}, content: function(){