Skip to content

Commit c294ef4

Browse files
authored
Update problem.php
1 parent a56d064 commit c294ef4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

trunk/web/template/syzoj/problem.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ function transform(){
278278
}
279279
$("#submit").remove();
280280
<?php if ($row['spj']>1 && !isset($_GET['spa']) ){ ?>
281-
window.setTimeout('$("iframe")[0].contentWindow.$("#TestRun").remove();',1000);
281+
if($("iframe")[0].contentWindow.$!=undefined )
282+
window.setTimeout('$("iframe")[0].contentWindow.$("#TestRun").remove();',1000);
282283
<?php }?>
283284

284285
// Add code to place drag button on the left side of the iframe

0 commit comments

Comments
 (0)