From 4eaba38f2e1dd732f6420736675f9655ce7a8a29 Mon Sep 17 00:00:00 2001 From: Bjoern Gruening Date: Sat, 18 Oct 2014 18:38:04 -0400 Subject: [PATCH] =?UTF-8?q?=3D=3FUTF-8=3Fq=3FIn=3D20FF=3D20the=3D20=3D20attriute=3D20needs=3D20to=3D20be=3F=3D=20=3D=3FUTF-8=3Fq?= =?UTF-8?q?=3F=3D20from=3D20type=3D20'data'=3D20and=3D20not=3D20'src'.=3D0?= =?UTF-8?q?AChrome=3D20seems=3F=3D=20=3D=3FUTF-8=3Fq=3F=3D20to=3D20be=3D20?= =?UTF-8?q?happy=3D20with=3D20'src'.=3D20This=3D20commit=3D20changes=3D20?= =?UTF-8?q?=3F=3D=20=3D=3FUTF-8=3Fq=3Fit=3D20back=3D20to=3D20'data'.=3F=3D?= --- .../ipython/templates/ipython.mako | 51 ++++--------------- 1 file changed, 9 insertions(+), 42 deletions(-) diff --git a/config/plugins/visualizations/ipython/templates/ipython.mako b/config/plugins/visualizations/ipython/templates/ipython.mako index 6ee0ae3af0d..a7f382ef62c 100644 --- a/config/plugins/visualizations/ipython/templates/ipython.mako +++ b/config/plugins/visualizations/ipython/templates/ipython.mako @@ -145,40 +145,18 @@ if ( ${ password_auth_jsvar } ) { // If that is successful, load the notebook success: function(){ //Append an object to the body - $('body').append( - $('', { - src: '${ notebook_access_url }', - height: '100%', - width: '100%' - }).append( - // And an embed to the object - $('', { - src: '${ notebook_access_url }', - height: '100%', - width: '100%' - }) - ) - ); + $('body').append('' + +'' + ) }, error: function(jqxhr, status, error){ if(${ password_auth_jsvar } && !${ apache_urls_jsvar }){ $('body').append("Error, could not automatically authorize you. Your" + " password is: ${ notebook_pw }
Ask your administrator" + " to set apache_urls = True to make this go away"); - $('body').append( - $('', { - src: '${ notebook_access_url }', - height: '100%', - width: '100%' - }).append( - // And an embed to the object - $('', { - src: '${ notebook_access_url }', - height: '100%', - width: '100%' - }) - ) - ); + $('body').append('' + +'' + ) }else{ var error_msg = "

Error " + status + "

Could not connect to IPython Notebook: " @@ -195,20 +173,9 @@ if ( ${ password_auth_jsvar } ) { else { // Not using password auth, just embed it to avoid content-origin issues. $( document ).ready(function() { - $('body').append( - $('', { - src: '${ notebook_access_url }', - height: '100%', - width: '100%' - }).append( - // And an embed to the object - $('', { - src: '${ notebook_access_url }', - height: '100%', - width: '100%' - }) - ) - ); + $('body').append('' + +'' + ) }); }