diff --git a/trunk/web/template/bs3/auto_refresh.js b/trunk/web/template/bs3/auto_refresh.js index dd7eed3105b..580da8f349e 100644 --- a/trunk/web/template/bs3/auto_refresh.js +++ b/trunk/web/template/bs3/auto_refresh.js @@ -79,16 +79,20 @@ function fresh_result(solution_id) { //console.log(ra[0]); switch (ra[0]) { case 4: - if(user_id==ra[5]) fancy(row.cells[4]); case 14: - row.cells[4].innerHTML += ""+judge_result[ra[0]]+""; + if(user_id==ra[5]){ + fancy(row.cells[4]); + row.cells[4].innerHTML += ""+judge_result[ra[0]]+""; + }else{ + row.cells[4].innerHTML = ""+judge_result[ra[0]]+""; + } break; - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: row.cells[4].innerHTML = ""+judge_result[ra[0]]+" :"+(oj_mark=='percent'?100-ra[4].trim():ra[4].trim())+"%"; break; case 11: @@ -97,7 +101,7 @@ function fresh_result(solution_id) { default: // row.cells[4].innerHTML = ""+judge_result[ra[0]]+" AC:"+ra[4].trim()+"%"; } - + $(row.cells[4].children[0]).attr("result",ra[0]); auto_refresh(); } } diff --git a/trunk/web/template/sidebar/auto_refresh.js b/trunk/web/template/sidebar/auto_refresh.js index bd334cb9a11..7de62c0cee9 100644 --- a/trunk/web/template/sidebar/auto_refresh.js +++ b/trunk/web/template/sidebar/auto_refresh.js @@ -79,10 +79,13 @@ function fresh_result(solution_id) { //console.log(ra[0]); switch (ra[0]) { case 4: - if(user_id==ra[5]) fancy(row.cells[4]); - //break; case 14: - row.cells[4].innerHTML += ""+judge_result[ra[0]]+""; + if(user_id==ra[5]){ + fancy(row.cells[4]); + row.cells[4].innerHTML += ""+judge_result[ra[0]]+""; + }else{ + row.cells[4].innerHTML = ""+judge_result[ra[0]]+""; + } break; case 5: case 6: @@ -98,7 +101,7 @@ function fresh_result(solution_id) { default: // row.cells[4].innerHTML = ""+judge_result[ra[0]]+" AC:"+ra[4].trim()+"%"; } - + $(row.cells[4].children[0]).attr("result",ra[0]); auto_refresh(); } } diff --git a/trunk/web/template/sidebar/js.php b/trunk/web/template/sidebar/js.php index 1042099621e..16fb04ba52b 100644 --- a/trunk/web/template/sidebar/js.php +++ b/trunk/web/template/sidebar/js.php @@ -24,7 +24,7 @@ - + document.getElementById("frmSolution").submit(); //如果是指定文件名,则强制用文件post方式提交。 $.post("submit.php?ajax",$("#frmSolution").serialize(),function(data){fresh_result(data);}); $("#Submit").prop('disabled', true); - $("#TestRub").prop('disabled', true); + $("#TestRun").prop('disabled', true); count= * 2 ; handler_interval= window.setTimeout("resume();",1000); $("#sk").attr("src","remote.php"); @@ -344,7 +344,7 @@ function do_test_run(){ //document.getElementById("frmSolution").submit(); $.post("submit.php?ajax",$("#frmSolution").serialize(),function(data){fresh_result(data);}); $("#Submit").prop('disabled', true); - $("#TestRub").prop('disabled', true); + $("#TestRun").prop('disabled', true); problem_id.value=-problem_id.value; count= * 2 ; handler_interval= window.setTimeout("resume();",1000); @@ -352,12 +352,12 @@ function do_test_run(){ function resume(){ count--; var s=$("#Submit")[0]; - var t=$("#TestRub")[0]; + var t=$("#TestRun")[0]; if(count<0){ $("#Submit").attr("disabled",false); $("#Submit").text(""); - if(t!=null) $("#TestRub").attr("disabled",false); - if(t!=null) $("#TestRub").text(""); + if(t!=null) $("#TestRun").attr("disabled",false); + if(t!=null) $("#TestRun").text(""); if( handler_interval) window.clearInterval( handler_interval); if($("#vcode")!=null) $("#vcode").click(); }else{ diff --git a/trunk/web/template/sidebar/userinfo.php b/trunk/web/template/sidebar/userinfo.php index c59b707484d..529cebdded6 100644 --- a/trunk/web/template/sidebar/userinfo.php +++ b/trunk/web/template/sidebar/userinfo.php @@ -60,7 +60,7 @@
通过 - 排名 + ">排名