##// END OF EJS Templates
Solid first go at jquery-ui based menus.
Solid first go at jquery-ui based menus.

File last commit:

r5857:da3131e4
r5869:86b95fdb
Show More
printwidget.js
31 lines | 850 B | application/javascript | JavascriptLexer
Stefan van der Walt
Refactor static printing.
r4615 var IPython = (function (IPython) {
Brian Granger
Implemented menu based UI using Wijmo.
r5857 var PrintWidget = function () {
Stefan van der Walt
Refactor static printing.
r4615 };
PrintWidget.prototype.print_notebook = function () {
var w = window.open('', '_blank', 'scrollbars=1,menubar=1');
var html = '<html><head>' +
$('head').clone().html() +
'<style type="text/css">' +
'@media print { body { overflow: visible !important; } }' +
'.ui-widget-content { border: 0px; }' +
'</style>' +
'</head><body style="overflow: auto;">' +
$('#notebook').clone().html() +
'</body></html>';
w.document.open();
w.document.write(html);
w.document.close();
return false;
};
Brian Granger
Implemented menu based UI using Wijmo.
r5857
Stefan van der Walt
Refactor static printing.
r4615 IPython.PrintWidget = PrintWidget;
Brian Granger
Implemented menu based UI using Wijmo.
r5857
Stefan van der Walt
Refactor static printing.
r4615 return IPython;
Brian E. Granger
Adding page break logic to the print css....
r4625 }(IPython));