From c8111bf0d5a01233d204b9836c24cb497d4342b0 Mon Sep 17 00:00:00 2001 From: Claudio Maggioni Date: Wed, 25 May 2016 12:08:04 +0200 Subject: [PATCH] Aggiunto aggiornamento dettagli tabella --- index.html | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/index.html b/index.html index e929423..f57e0fc 100644 --- a/index.html +++ b/index.html @@ -262,6 +262,7 @@ var interrompi=false; function loopProcessiPronti(){ assegnaRisorse(); + aggiornaProcessiNellaScheda(); if(processiPronti.length>0){ if(pidAttuale >= processiPronti.length) pidAttuale=0; var tmp; @@ -364,7 +365,13 @@ tmp+=">Processo "+processi[i].pid+""; } document.getElementById("listaProc").innerHTML=tmp; - window.setTimeout(aggiornaProcessiNellaScheda, 1000); + if($('#listaProc :selected').text()!=""&&parseInt($('#listaProc :selected').attr("value"))>0){ + var pid=parseInt($('#listaProc :selected').attr("value")); + document.getElementById("proc-pid").innerHTML=pid; + document.getElementById("proc-stato").innerHTML=trovaProcessoDaPid(pid).stato; + document.getElementById("proc-numpagine").innerHTML=trovaProcessoDaPid(pid).pagine.length; + } + //window.setTimeout(aggiornaProcessiNellaScheda, 1000); }