X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fqueryupdater%2Fstatic%2Fjs%2Fqueryupdater.js;fp=plugins%2Fqueryupdater%2Fstatic%2Fjs%2Fqueryupdater.js;h=449f24eba150659f3e74d2b097eeab3d08f9ab30;hb=0e68e483bef942a8b786afdcfe3b286c427a1f4b;hp=8c68037fc895db05207af98fd3422bc41712235b;hpb=250e68a92fdd782a145bf698cc088e41c3c781b6;p=unfold.git diff --git a/plugins/queryupdater/static/js/queryupdater.js b/plugins/queryupdater/static/js/queryupdater.js index 8c68037f..449f24eb 100644 --- a/plugins/queryupdater/static/js/queryupdater.js +++ b/plugins/queryupdater/static/js/queryupdater.js @@ -79,6 +79,7 @@ var accepted_sla = Array(); var count = 0; + var self = e.data; // XXX check that the query is not disabled console.log("DATA VALUE: " + data.value); @@ -149,9 +150,25 @@ // var wimessage = '

SLA description

Testbed guarantees 0.99 Uptime rate for 0.99 rate of the VirtualWall resources during the sliver lifetime

' + if(flagWi || flagVW){ $('#sla_dialog').show(); + $('#slamodal-wilab2').modal('show'); - + } + else + { + + + var username = e.data.options.username; + var urn = data.value; + // XXX check that the query is not disabled + + self.spin(); + console.log("do_update"); + // XXX check that the query is not disabled + manifold.raise_event(self.options.query_uuid, RUN_UPDATE); + return; + } $("#accept_sla_wilab2").click(function(){ console.log("SLA ACCEPTED"); @@ -190,7 +207,7 @@ $('#slamodal-wilab2').modal('hide'); accepted_sla["wilab2"] = true; - this.do_update(e); + manifold.raise_event(self.options.query_uuid, RUN_UPDATE); } }); @@ -198,6 +215,10 @@ console.log("SLA NOT ACCEPTED"); $('#slamodal-wilab2').modal('hide'); }); + + // } else { + // this.do_update(e); + // } // for(var iter = 0; iter < arrayselectedresources.length; iter++){ // var list = ''+arrayselectedresources[iter].toLowerCase()+'
';