Merge pull request #3685 from minrk/pager

fix Pager.detach

detaching the pager would result in the pager not working anymore.
This commit is contained in:
Min RK 2013-07-19 09:52:35 -07:00
commit 73771392aa

View File

@ -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>')
@ -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();