From 0ef48fd577b9fe18fb31e40dca9e89badf326c7c Mon Sep 17 00:00:00 2001 From: Henri Ylikotila Date: Tue, 19 Dec 2017 14:40:17 +0200 Subject: [PATCH] fixing the skosxl qtips not appearing after ajaxing content, related to #533 --- resource/js/docready.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resource/js/docready.js b/resource/js/docready.js index 0eea7d1ad..79ddd94b8 100644 --- a/resource/js/docready.js +++ b/resource/js/docready.js @@ -70,6 +70,17 @@ $(function() { // DOCUMENT READY if (settings.url.indexOf('search') !== -1 && $autocomplete.length > 0 && $autocomplete[0].offsetHeight === 302) { $(".tt-dropdown-menu").mCustomScrollbar({ alwaysShowScrollbar: 1, scrollInertia: 0 }); } + + $('.reified-property-value').each(function() { + $(this).qtip({ + content: $(this).next('.reified-tooltip'), + position: { my: 'top left', at: 'top left' }, + style: { classes: 'qtip-skosmos' }, + show: { delay: 100 }, + hide: { fixed: true, delay: 400 } + }); + }); + countAndSetOffset(); hideCrumbs();