X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=inline;f=org.argeo.slc.webapp%2Fsrc%2Fmain%2Fwebapp%2Fargeo-ria-lib%2Fslc%2Fclass%2Forg%2Fargeo%2Fslc%2Fria%2FNewLauncherApplet.js;fp=org.argeo.slc.webapp%2Fsrc%2Fmain%2Fwebapp%2Fargeo-ria-lib%2Fslc%2Fclass%2Forg%2Fargeo%2Fslc%2Fria%2FNewLauncherApplet.js;h=e1297fcd4e68845a62c45bd24ba87485ab760abb;hb=5aa18045bcdd46992b9417f7864fec455e9fc979;hp=037e7b79a617417f27c321d35ef504f1e35e78f6;hpb=e3ae72208feba2b542520878574d49ac16917573;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/NewLauncherApplet.js b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/NewLauncherApplet.js index 037e7b79a..e1297fcd4 100644 --- a/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/NewLauncherApplet.js +++ b/org.argeo.slc.webapp/src/main/webapp/argeo-ria-lib/slc/class/org/argeo/slc/ria/NewLauncherApplet.js @@ -519,8 +519,19 @@ qx.Class.define("org.argeo.slc.ria.NewLauncherApplet", */ executeBatchOnAgent : function(agentUuid){ //var xmlString = agentUuid + this.currentBatchToXml(); - var xmlString = ""+this.currentBatchToXml()+""; - alert(xmlString); + var xmlString = ""+this.currentBatchToXml()+""; + this._amqClient.sendMessage( + "topic://agent.newExecution", + xmlString, + {"slc-agentId":agentUuid} + ); + // Force logs refresh right now! + qx.event.Timer.once(function(){ + var command = org.argeo.ria.event.CommandsManager.getInstance().getCommandById("reloadlogs"); + if(command){ + command.execute(); + } + }, this, 2000); }, /**