Skip to content

Commit

Permalink
Merge pull request ipython#3685 from minrk/pager
Browse files Browse the repository at this point in the history
fix Pager.detach

detaching the pager would result in the pager not working anymore.
  • Loading branch information
minrk committed Jul 19, 2013
2 parents 09e25da + 6ff87d8 commit 254c007
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions IPython/html/static/notebook/js/pager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
$('<link>')
Expand All @@ -153,10 +153,10 @@ var IPython = (function (IPython) {
.append(
$('<title>').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();

Expand Down

0 comments on commit 254c007

Please sign in to comment.