Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Totally remove pager when read only (notebook) #1126

Closed
wants to merge 1 commit into from

2 participants

@Carreau
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.

@minrk minrk closed this pull request from a commit
@Carreau Carreau totally remove pager when read only
closes #1126
aa46457
@minrk minrk closed this in aa46457
@ellisonbg ellisonbg referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@mattvonrocketstein mattvonrocketstein referenced this pull request from a commit in mattvonrocketstein/ipython
@Carreau 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. @Carreau
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
View
2  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');
Something went wrong with that request. Please try again.