1. Fix for NIHVIVO-2126
This commit is contained in:
parent
8923eaf09f
commit
fb7889db10
4 changed files with 13 additions and 11 deletions
BIN
productMods/images/visualization/ajax-loader-indicator.gif
Normal file
BIN
productMods/images/visualization/ajax-loader-indicator.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
|
@ -28,8 +28,10 @@ $(document).ready(function () {
|
|||
|
||||
$.blockUI.defaults.css.width = '500px';
|
||||
$.blockUI.defaults.css.border = '0px';
|
||||
$.blockUI.defaults.css.top = '15%';
|
||||
|
||||
$("div#body").block({
|
||||
|
||||
$("div#temporal-graph-response").block({
|
||||
message: '<h3><img src="' + loadingImageLink + '" /> Loading data for <i>${organizationLabel}</i></h3>'
|
||||
});
|
||||
|
||||
|
@ -39,17 +41,20 @@ $(document).ready(function () {
|
|||
success: function (data) {
|
||||
|
||||
if (data.error) {
|
||||
$("#error-container").show();
|
||||
$("#body").remove();
|
||||
$("#error-container").show();
|
||||
$("div#temporal-graph-response").unblock();
|
||||
|
||||
} else {
|
||||
temporalGraphProcessor.initiateTemporalGraphRenderProcess(graphContainer, data);
|
||||
$("#error-container").remove();
|
||||
$("div#temporal-graph-response").unblock();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// unblock when ajax activity stops
|
||||
$(document).ajaxStop($("div#body").unblock());
|
||||
|
||||
});
|
||||
|
||||
|
@ -58,6 +63,8 @@ $(document).ready(function () {
|
|||
|
||||
<#assign currentParameterObject = grantParameter>
|
||||
|
||||
<div id="temporal-graph-response">
|
||||
|
||||
<#include "entityComparisonBody.ftl">
|
||||
|
||||
<#--
|
||||
|
@ -65,4 +72,6 @@ Right now we include the error message by default becuae currently I could not d
|
|||
the CSS of the #error-container is display:none; so it will be hidden unless explicitly commanded to be shown which we do in
|
||||
via JavaScript.
|
||||
-->
|
||||
<#include "entityGrantComparisonError.ftl">
|
||||
<#include "entityGrantComparisonError.ftl">
|
||||
|
||||
</div>
|
|
@ -15,12 +15,9 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.hp.hpl.jena.iri.IRI;
|
||||
import com.hp.hpl.jena.iri.IRIFactory;
|
||||
import com.hp.hpl.jena.query.Dataset;
|
||||
import com.hp.hpl.jena.rdf.model.Model;
|
||||
|
||||
import edu.cornell.mannlib.vitro.webapp.ConfigurationProperties;
|
||||
import edu.cornell.mannlib.vitro.webapp.beans.Portal;
|
||||
import edu.cornell.mannlib.vitro.webapp.controller.VitroRequest;
|
||||
import edu.cornell.mannlib.vitro.webapp.controller.freemarker.responsevalues.ResponseValues;
|
||||
|
@ -36,10 +33,6 @@ import edu.cornell.mannlib.vitro.webapp.visualization.freemarker.visutils.QueryR
|
|||
import edu.cornell.mannlib.vitro.webapp.visualization.freemarker.visutils.UtilityFunctions;
|
||||
import edu.cornell.mannlib.vitro.webapp.visualization.freemarker.visutils.VisualizationRequestHandler;
|
||||
|
||||
/**
|
||||
* @author cdtank
|
||||
*
|
||||
*/
|
||||
public class EntityPublicationCountRequestHandler implements
|
||||
VisualizationRequestHandler {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue