Skip to content

Commit 59b6fde

Browse files
author
Philip Guo
committed
clear URL output for cleanliness
1 parent dc9246b commit 59b6fde

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎v3/js/opt-frontend.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ var pyInputCodeMirror; // CodeMirror object that contains the input text
4848

4949
function setCodeMirrorVal(dat) {
5050
pyInputCodeMirror.setValue(dat.rtrim() /* kill trailing spaces */);
51+
$('#urlOutput').val('');
5152
}
5253

5354

@@ -191,7 +192,9 @@ $(document).ready(function() {
191192

192193
myVisualizer = new ExecutionVisualizer('pyOutputPane',
193194
dataFromBackend,
194-
{startingInstruction: startingInstruction});
195+
{startingInstruction: startingInstruction,
196+
updateOutputCallback: function() {$('#urlOutput').val('');}
197+
});
195198

196199
$.bbq.pushState({ mode: 'visualize' }, 2 /* completely override other hash strings to keep URL clean */);
197200
}

0 commit comments

Comments
 (0)