From 9ad29780dd02c20d88d8518ff3ed98ab7e8817fd 2012-01-23 19:33:01
From: Brian Granger <ellisonbg@gmail.com>
Date: 2012-01-23 19:33:01
Subject: [PATCH] Start the pager out collapsed.

---

diff --git a/IPython/frontend/html/notebook/static/css/notebook.css b/IPython/frontend/html/notebook/static/css/notebook.css
index 4d45497..6b79133 100644
--- a/IPython/frontend/html/notebook/static/css/notebook.css
+++ b/IPython/frontend/html/notebook/static/css/notebook.css
@@ -137,6 +137,7 @@ div#pager_splitter {
 div#pager {
     padding: 15px;
     overflow: auto;
+    display: none;
 }
 
 div.cell {
diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js
index c2bc5b8..cbf75c5 100644
--- a/IPython/frontend/html/notebook/static/js/notebook.js
+++ b/IPython/frontend/html/notebook/static/js/notebook.js
@@ -1159,7 +1159,6 @@ var IPython = (function (IPython) {
 
 
     Notebook.prototype.notebook_loaded = function (data, status, xhr) {
-        var allowed = xhr.getResponseHeader('Allow');
         this.fromJSON(data);
         if (this.ncells() === 0) {
             this.insert_cell_below('code');
diff --git a/IPython/frontend/html/notebook/static/js/notebookmain.js b/IPython/frontend/html/notebook/static/js/notebookmain.js
index 1df7dad..b943ea9 100644
--- a/IPython/frontend/html/notebook/static/js/notebookmain.js
+++ b/IPython/frontend/html/notebook/static/js/notebookmain.js
@@ -116,7 +116,6 @@ $(document).ready(function () {
         setTimeout(function () {
             IPython.save_widget.update_url();
             IPython.layout_manager.do_resize();
-            IPython.pager.collapse();
         },100);
     });
 
diff --git a/IPython/frontend/html/notebook/static/js/pager.js b/IPython/frontend/html/notebook/static/js/pager.js
index 76ef7f0..c3d4fcf 100644
--- a/IPython/frontend/html/notebook/static/js/pager.js
+++ b/IPython/frontend/html/notebook/static/js/pager.js
@@ -16,7 +16,7 @@ var IPython = (function (IPython) {
     var Pager = function (pager_selector, pager_splitter_selector) {
         this.pager_element = $(pager_selector);
         this.pager_splitter_element = $(pager_splitter_selector);
-        this.expanded = true;
+        this.expanded = false;
         this.percentage_height = 0.40;
         this.style();
         this.bind_events();