From: Loic Baron Date: Mon, 5 Jan 2015 14:18:39 +0000 (+0100) Subject: Update is not using the loop per platform in JS, we don't manage partial answers... X-Git-Tag: myslice-1.2^0 X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=c17a3781bf8284cf85fcb0264003cbea51aebf6c Update is not using the loop per platform in JS, we don't manage partial answers in the Web yet... --- diff --git a/manifoldapi/static/js/manifold.js b/manifoldapi/static/js/manifold.js index 49098f91..c880831f 100644 --- a/manifoldapi/static/js/manifold.js +++ b/manifoldapi/static/js/manifold.js @@ -976,9 +976,10 @@ var manifold = { /* If the Query object concerns SFA AM objects, iterate on each AM platform - This allows a progressive loading per AM platform + Loop per platform, allows a progressive loading per AM platform + Update is run on all platforms at the same time to get a final answer, we don't manage partial answers yet... */ - if(query.object == 'resource' || query.object == 'lease' || query.object == 'slice'){ + if((query.object == 'resource' || query.object == 'lease' || query.object == 'slice') && query.action != "update"){ var obj = query.object; $.post("/rest/platform/", function( data ) { $.each(data, function(index, p) {