From 674bf530c65c05fea3e77a82404a77dc03f645ca Mon Sep 17 00:00:00 2001 From: Saskia Hiltemann Date: Fri, 5 Feb 2016 10:51:47 +0100 Subject: [PATCH] fix window height issue --- .../interactive_environments/phinch/static/js/phinch.js | 7 +++++++ .../interactive_environments/phinch/templates/phinch.mako | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/config/plugins/interactive_environments/phinch/static/js/phinch.js b/config/plugins/interactive_environments/phinch/static/js/phinch.js index e91c8983007..1b4c993e554 100644 --- a/config/plugins/interactive_environments/phinch/static/js/phinch.js +++ b/config/plugins/interactive_environments/phinch/static/js/phinch.js @@ -6,6 +6,13 @@ function load_notebook(url){ }); } +function append_notebook(url){ + clear_main_area(); + $('#main').append('' + ); +} + + function keep_alive(notebook_access_url){ /** * This is needed to keep the container alive. If the user leaves this site diff --git a/config/plugins/interactive_environments/phinch/templates/phinch.mako b/config/plugins/interactive_environments/phinch/templates/phinch.mako index 3b139ba311d..c446bf7d6e5 100644 --- a/config/plugins/interactive_environments/phinch/templates/phinch.mako +++ b/config/plugins/interactive_environments/phinch/templates/phinch.mako @@ -40,7 +40,7 @@ requirejs(['interactive_environments', 'plugin/phinch'], function(){ }); -
+