Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Totally remove pager when read only (notebook) #1126

Closed
wants to merge 1 commit into from

2 participants

Matthias Bussonnier Min RK
Matthias Bussonnier
Owner

I don't see any use of having a pager in Read only mode, so I added it to the removed element.
Not 'hidden' because otherwise there is still 2 blank pixel at the bottom of the screen.

Min RK minrk closed this pull request from a commit
Matthias Bussonnier Carreau totally remove pager when read only
closes #1126
aa46457
Min RK minrk closed this in aa46457
Brian E. Granger ellisonbg referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
matthew von rocketstein mattvonrocketstein referenced this pull request from a commit in mattvonrocketstein/ipython
Matthias Bussonnier Carreau totally remove pager when read only
closes #1126
7fbc792
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 8, 2011
  1. Matthias Bussonnier
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  IPython/frontend/html/notebook/static/js/notebookmain.js
2  IPython/frontend/html/notebook/static/js/notebookmain.js
View
@@ -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');
Something went wrong with that request. Please try again.