1. Minor improvement in the "loading..." mechanism for temporal graoh vis.

This commit is contained in:
cdtank 2011-02-11 22:46:12 +00:00
parent fb7889db10
commit 51e424e993
3 changed files with 8 additions and 9 deletions

View file

@ -9,6 +9,10 @@
overflow: hidden;
}
#body {
display: none;
}
#error-container {
display: none;
}

View file

@ -30,7 +30,6 @@ $(document).ready(function () {
$.blockUI.defaults.css.border = '0px';
$.blockUI.defaults.css.top = '15%';
$("div#temporal-graph-response").block({
message: '<h3><img src="' + loadingImageLink + '" />&nbsp;Loading data for <i>${organizationLabel}</i></h3>'
});
@ -46,16 +45,14 @@ $(document).ready(function () {
$("div#temporal-graph-response").unblock();
} else {
temporalGraphProcessor.initiateTemporalGraphRenderProcess(graphContainer, data);
$("#body").show();
$("#error-container").remove();
temporalGraphProcessor.initiateTemporalGraphRenderProcess(graphContainer, data);
$("div#temporal-graph-response").unblock();
}
}
});
// unblock when ajax activity stops
});
// -->

View file

@ -45,16 +45,14 @@ $(document).ready(function () {
$("div#temporal-graph-response").unblock();
} else {
temporalGraphProcessor.initiateTemporalGraphRenderProcess(graphContainer, data);
$("#body").show();
$("#error-container").remove();
temporalGraphProcessor.initiateTemporalGraphRenderProcess(graphContainer, data);
$("div#temporal-graph-response").unblock();
}
}
});
// unblock when ajax activity stops
//$(document).ajaxStop($("div#temporal-graph-response").unblock());
});
// -->