From 81598452e26f3bc5920fabed3bbad7bbb68039c5 Mon Sep 17 00:00:00 2001 From: manolobevia Date: Sat, 3 Dec 2011 01:36:00 +0000 Subject: [PATCH] NIHVIVO-3418: Done some refactoring, so the Individual link icon for URI/RDF works properly in a VITRO instance. --- productMods/js/individual/individualUtils.js | 48 ------------------- .../individual/individual--foaf-person.ftl | 1 + 2 files changed, 1 insertion(+), 48 deletions(-) diff --git a/productMods/js/individual/individualUtils.js b/productMods/js/individual/individualUtils.js index 5c2d9b8c..ac5c94e3 100644 --- a/productMods/js/individual/individualUtils.js +++ b/productMods/js/individual/individualUtils.js @@ -5,15 +5,6 @@ $(document).ready(function(){ // "more"/"less" HTML truncator for showing more or less content in data property core:overview $('.overview-value').truncate({max_length: 500}); - // "more"/"less" HTML truncator for all properties - // $('.subclass-property-list li:gt(4)').hide(); - // $('ul li:gt(4)').hide(); - // $('.show_button').click(function() { - // $('ul li:gt(4)').show(); - // }); - - // var propList = '.property-list:not(:has(>li>ul)) li:gt(4)'; - $.fn.exists = function () { return this.length !== 0; } @@ -100,45 +91,6 @@ $(document).ready(function(){ // Change background color button when verbose mode is off $('a#verbosePropertySwitch:contains("Turn off")').addClass('verbose-off'); - - // This function creates and styles the "qTip" tooltip that displays the resource uri when the user clicks the uri icon. - $('#uriIcon').each(function() - { - $(this).qtip( - { - content: { - prerender: true, // We need this for the .click() event listener on 'a.close' - text: '
share the URI for this profile
view profile in RDF format
close' - }, - position: { - corner: { - target: 'bottomLeft', - tooltip: 'topLeft' - } - }, - show: { - when: {event: 'click'} - }, - hide: { - fixed: true, // Make it fixed so it can be hovered over and interacted with - when: { - target: $('a.close'), - event: 'click' - } - }, - style: { - padding: '1em', - width: 400, - backgroundColor: '#f1f2ee' - } - }); - }); - - // Prevent close link for URI qTip from requesting bogus '#' href - $('a.close').click(function() { - $('#uriIcon').qtip("hide"); - return false; - }); // Reveal vCard QR code when QR icon is clicked $('#qrIcon, .qrCloseLink').click(function() { diff --git a/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl b/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl index 6ec5ed93..235e3e61 100644 --- a/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl +++ b/productMods/templates/freemarker/body/individual/individual--foaf-person.ftl @@ -129,6 +129,7 @@ ${headScripts.add('')} ${scripts.add('', + '', '', '')}