From fa05d7ef47d03c70eec53986e7747545f8842d0b 2013-07-19 16:52:35 From: Min RK Date: 2013-07-19 16:52:35 Subject: [PATCH] Merge pull request #3685 from minrk/pager fix Pager.detach detaching the pager would result in the pager not working anymore. --- diff --git a/IPython/html/static/notebook/js/pager.js b/IPython/html/static/notebook/js/pager.js index 209061a..cc2d80a 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();