1. Fix for the flicker in appearance of the Temporal Graph Link for highest Level org on the "organizations" page. Made change so that the link is hidden by default & only shown when we have a link to report back.
This commit is contained in:
parent
259bf38461
commit
cc58112373
2 changed files with 1 additions and 7 deletions
|
@ -20,11 +20,6 @@ var visualizationLink = {
|
||||||
this.visLink = $('.visualization-menupage-link');
|
this.visLink = $('.visualization-menupage-link');
|
||||||
},
|
},
|
||||||
|
|
||||||
// Temporarily hide the link while we determine the href value via AJAX
|
|
||||||
hideLink: function() {
|
|
||||||
this.visLink.addClass('hidden');
|
|
||||||
},
|
|
||||||
|
|
||||||
// Determine the URL parameters for temporal graph of top level org
|
// Determine the URL parameters for temporal graph of top level org
|
||||||
getURL: function() {
|
getURL: function() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
@ -43,6 +38,5 @@ var visualizationLink = {
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
visualizationLink.onLoad();
|
visualizationLink.onLoad();
|
||||||
visualizationLink.hideLink();
|
|
||||||
visualizationLink.getURL();
|
visualizationLink.getURL();
|
||||||
});
|
});
|
|
@ -1,6 +1,6 @@
|
||||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||||
<#assign visualizationLink>
|
<#assign visualizationLink>
|
||||||
<a class="visualization-menupage-link temporal-graph" href="#" title="Compare publications and grants output">Temporal Graph</a>
|
<a class="visualization-menupage-link temporal-graph hidden" href="#" title="Compare publications and grants output">Temporal Graph</a>
|
||||||
</#assign>
|
</#assign>
|
||||||
|
|
||||||
<#include "menupage.ftl">
|
<#include "menupage.ftl">
|
||||||
|
|
Loading…
Add table
Reference in a new issue