@@ -45,14 +45,6 @@ var preseededCurInstr = null; // if you passed in a 'curInstr=<number>' in the U
4545var myVisualizer = null ; // singleton ExecutionVisualizer instance
4646
4747
48- function enterEditMode ( ) {
49- $ . bbq . pushState ( { mode : 'edit' } , 2 /* completely override other hash strings to keep URL clean */ ) ;
50- }
51-
52- function enterDisplayNoFrillsMode ( ) {
53- $ . bbq . pushState ( { mode : 'display_no_frills' } , 2 /* completely override other hash strings to keep URL clean */ ) ;
54- }
55-
5648var pyInputCodeMirror ; // CodeMirror object that contains the input text
5749
5850function setCodeMirrorVal ( dat ) {
@@ -173,13 +165,6 @@ $(document).ready(function() {
173165 updateOutputCallback : function ( ) { $ ( '#urlOutput,#embedCodeOutput' ) . val ( '' ) ; } ,
174166 }
175167
176- function handleSuccessFunc ( ) {
177- // also scroll to top to make the UI more usable on smaller monitors
178- $ ( document ) . scrollTop ( 0 ) ;
179-
180- $ . bbq . pushState ( { mode : 'display' } , 2 /* completely override other hash strings to keep URL clean */ ) ;
181- }
182-
183168 function handleUncaughtExceptionFunc ( trace ) {
184169 if ( trace . length == 1 ) {
185170 var errorLineNo = trace [ 0 ] . line - 1 ; /* CodeMirror lines are zero-indexed */
@@ -204,7 +189,7 @@ $(document).ready(function() {
204189 backend_script , backendOptionsObj ,
205190 frontendOptionsObj ,
206191 'pyOutputPane' ,
207- handleSuccessFunc , handleUncaughtExceptionFunc ) ;
192+ enterDisplayMode , handleUncaughtExceptionFunc ) ;
208193 }
209194
210195 function executeCodeFromScratch ( ) {
@@ -286,4 +271,3 @@ $(document).ready(function() {
286271 $ ( '#urlOutput' ) . val ( urlStr ) ;
287272 } ) ;
288273} ) ;
289-
0 commit comments