Browse Source

Disable auto refresh on hidden judge state

master
Menci 8 years ago
parent
commit
271435c5ef
  1. 2
      views/judge_detail_item.ejs

2
views/judge_detail_item.ejs

@ -103,7 +103,7 @@ $(function() {
<% if (!isPending(judge.status)) { %><div><div id="stop_ajax"></div></div><% } %> <% if (!isPending(judge.status)) { %><div><div id="stop_ajax"></div></div><% } %>
<script> <script>
<% if (isPending(judge.status)) { %> <% if (isPending(judge.status) && judge.allowedSeeResult) { %>
function update_judge_detail() { function update_judge_detail() {
setTimeout(function () { setTimeout(function () {
$.get('/judge_detail/<%= judge.id %>/ajax', function (data) { $.get('/judge_detail/<%= judge.id %>/ajax', function (data) {

Loading…
Cancel
Save