From 0f5de6f4f864b224526ede7f1e1a81d68c1c09b7 Mon Sep 17 00:00:00 2001 From: MinRK Date: Thu, 18 Jul 2013 14:43:10 -0700 Subject: [PATCH] fix Pager.detach detaching the pager would result in the pager not working anymore. --- IPython/html/static/notebook/js/pager.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/IPython/html/static/notebook/js/pager.js b/IPython/html/static/notebook/js/pager.js index 209061ae7..cc2d80abe 100644 --- a/IPython/html/static/notebook/js/pager.js +++ b/IPython/html/static/notebook/js/pager.js @@ -142,7 +142,7 @@ var IPython = (function (IPython) { }; Pager.prototype.detach = function(){ - var w = window.open("","_blank") + var w = window.open("","_blank"); $(w.document.head) .append( $('') @@ -153,10 +153,10 @@ var IPython = (function (IPython) { .append( $('').text("IPython Pager") ); - var pager_body = $(w.document.body) - pager_body.attr('style','overflow:scroll'); + var pager_body = $(w.document.body); + pager_body.css('overflow','scroll'); - pager_body.append(this.pager_element.children()) + pager_body.append(this.pager_element.clone().children()); w.document.close(); this.collapse();