implemented check on numbner of batches and the bug found

git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/branches/portlets/user/PerformFISH-Apps/1.3@178573 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2019-03-13 16:09:46 +00:00
parent 5a4188eec0
commit bad5b895e0
1 changed files with 4 additions and 7 deletions

View File

@ -30,7 +30,7 @@ function closeAndReload() {
}
$(function () {
checkBatchesThreshold = function (theButton, endpoint, farmId, batchType) {
checkBatchesThreshold = function (theButton, endpoint, farmId, batchType, farmIdEncoded, batchTypeEncoded) {
$(theButton).html('<i class="icon-cog"> checking batches, please wait ...');
$.ajax({
url : endpoint,
@ -45,7 +45,7 @@ $(function () {
success : function(data) {
var content = JSON.parse(data);
if (content.success == "OK") {
location.href='${AnalyticalToolkitPortletEndpoint}?${batchTypeParamEncoded}=${batchTypeEncoded}&${farmIdParamEncoded}=${farmIdEncoded}';
location.href='${AnalyticalToolkitPortletEndpoint}?${batchTypeParamEncoded}='+batchTypeEncoded+'&${farmIdParamEncoded}='+farmIdEncoded;
}
else {
$(theButton).html('<i class="icon-warning-sign">' + content.message);
@ -176,13 +176,10 @@ $(function () {
<c:otherwise>
<div style="display: inline;">
<button class="btn" type="button"
onClick="checkBatchesThreshold(this, '${checkBatchesThresholdURL}', '${farmId}', '${form.batchType}')">
onClick="checkBatchesThreshold(this, '${checkBatchesThresholdURL}', '${farmId}', '${form.batchType}', '${farmIdEncoded}', '${batchTypeEncoded}')">
Analyse
</button>
</div>
<%-- <button class="btn" type="button" ${buttonDisabled} --%>
<%-- onClick="">Analyse </button> --%>
</div>
</c:otherwise>
</c:choose>
</c:if>