Skip to content

Commit e0fe266

Browse files
author
Philip Guo
committed
more reload-friendly
1 parent 8a2ea99 commit e0fe266

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

edu-python-questions.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ $(document).ready(function() {
6262
appMode = 'edit';
6363
}
6464

65+
// if there's no curTrace, then default to edit mode since there's
66+
// nothing to visualize or grade:
67+
if (!curTrace) {
68+
appMode = 'edit';
69+
$.bbq.pushState({ mode: 'edit' });
70+
}
71+
72+
6573
if (appMode == 'edit') {
6674
$("#pyInputPane").show();
6775
$("#pyOutputPane").hide();

0 commit comments

Comments
 (0)