Better handling for thumbnail tooltip if not in nextmatch row

This commit is contained in:
nathangray 2017-11-03 13:07:02 -06:00
parent dda47ca863
commit 06e41356bd

View File

@ -395,7 +395,12 @@ var et2_vfsMime = (function(){ "use strict"; return expose(et2_valueWidget.exten
// tooltip for mimetypes with available detailed thumbnail // tooltip for mimetypes with available detailed thumbnail
if (_value.mime.match(/application\/vnd\.oasis\.opendocument\.(text|presentation|spreadsheet|chart)/)) 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", items:"img",
position: {my:"right top", at:"left top", collision:"flipfit"}, position: {my:"right top", at:"left top", collision:"flipfit"},
content: function(){ content: function(){