From 70fa9c8b2a85a6ecfe61170e2aba23f8a4561a38 Mon Sep 17 00:00:00 2001 From: Matthias BUSSONNIER Date: Thu, 8 Dec 2011 17:43:09 +0100 Subject: [PATCH] totally remove pager when read only closes #1126 --- IPython/frontend/html/notebook/static/js/notebookmain.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IPython/frontend/html/notebook/static/js/notebookmain.js b/IPython/frontend/html/notebook/static/js/notebookmain.js index 8326b68c4..08c440211 100644 --- a/IPython/frontend/html/notebook/static/js/notebookmain.js +++ b/IPython/frontend/html/notebook/static/js/notebookmain.js @@ -99,6 +99,8 @@ $(document).ready(function () { // hide various elements from read-only view IPython.save_widget.element.find('button#save_notebook').addClass('hidden'); IPython.quick_help.element.addClass('hidden'); // shortcuts are disabled in read_only + $('div#pager').remove(); + $('div#pager_splitter').remove(); $('button#new_notebook').addClass('hidden'); $('div#cell_section').addClass('hidden'); $('div#config_section').addClass('hidden');