From eff6c07af4893e3cc00229dfc86c15ec8ef3f86d 2011-12-09 11:36:11
From: Matthias BUSSONNIER <bussonniermatthias@gmail.com>
Date: 2011-12-09 11:36:11
Subject: [PATCH] [notebook] read-only: disable name field

---

diff --git a/IPython/frontend/html/notebook/static/js/notebookmain.js b/IPython/frontend/html/notebook/static/js/notebookmain.js
index 08c4402..d2876c7 100644
--- a/IPython/frontend/html/notebook/static/js/notebookmain.js
+++ b/IPython/frontend/html/notebook/static/js/notebookmain.js
@@ -106,6 +106,10 @@ $(document).ready(function () {
         $('div#config_section').addClass('hidden');
         $('div#kernel_section').addClass('hidden');
         $('span#login_widget').removeClass('hidden');
+
+        // set the notebook name field as not modifiable
+        $('#notebook_name').attr('disabled','disabled')
+
         // left panel starts collapsed, but the collapse must happen after
         // elements start drawing.  Don't draw contents of the panel until
         // after they are collapsed