From 2e4ede95cadaf42f2e370d83411f32ba48e7ea19 2014-12-18 01:00:47 From: Thomas Kluyver Date: 2014-12-18 01:00:47 Subject: [PATCH] Fix instantiating config in editor and terminal --- diff --git a/IPython/html/static/edit/js/main.js b/IPython/html/static/edit/js/main.js index 1a85d98..898dd19 100644 --- a/IPython/html/static/edit/js/main.js +++ b/IPython/html/static/edit/js/main.js @@ -32,7 +32,7 @@ require([ contents = new contents.Contents({base_url: base_url}); var config = new configmod.ConfigSection('edit', {base_url: base_url}); config.load(); - var common_config = new configmod.ConfigSection('common', common_options); + var common_config = new configmod.ConfigSection('common', {base_url: base_url}); common_config.load(); var editor = new editmod.Editor('#texteditor-container', { diff --git a/IPython/html/static/terminal/js/main.js b/IPython/html/static/terminal/js/main.js index 184cac0..aca1499 100644 --- a/IPython/html/static/terminal/js/main.js +++ b/IPython/html/static/terminal/js/main.js @@ -19,7 +19,8 @@ require([ ){ page = new page.Page(); - var common_config = new configmod.ConfigSection('common', common_options); + var common_config = new configmod.ConfigSection('common', + {base_url: utils.get_body_data('baseUrl')}); common_config.load(); // Test size: 25x80