##// END OF EJS Templates
add Edit Notebook Metadata to Edit menu
MinRK -
Show More
@@ -136,6 +136,10 b' var IPython = (function (IPython) {'
136 this.element.find('#select_next').click(function () {
136 this.element.find('#select_next').click(function () {
137 IPython.notebook.select_next();
137 IPython.notebook.select_next();
138 });
138 });
139 this.element.find('#edit_nb_metadata').click(function () {
140 IPython.notebook.edit_metadata();
141 });
142
139 // View
143 // View
140 this.element.find('#toggle_header').click(function () {
144 this.element.find('#toggle_header').click(function () {
141 $('div#header').toggle();
145 $('div#header').toggle();
@@ -437,6 +437,14 b' var IPython = (function (IPython) {'
437 this.element.animate({scrollTop:0}, 0);
437 this.element.animate({scrollTop:0}, 0);
438 };
438 };
439
439
440 // Edit Notebook metadata
441
442 Notebook.prototype.edit_metadata = function () {
443 var that = this;
444 IPython.dialog.edit_metadata(this.metadata, function (md) {
445 that.metadata = md;
446 }, 'Notebook');
447 };
440
448
441 // Cell indexing, retrieval, etc.
449 // Cell indexing, retrieval, etc.
442
450
@@ -100,6 +100,8 b' class="notebook_app"'
100 <li class="divider"></li>
100 <li class="divider"></li>
101 <li id="select_previous"><a href="#">Select Previous Cell</a></li>
101 <li id="select_previous"><a href="#">Select Previous Cell</a></li>
102 <li id="select_next"><a href="#">Select Next Cell</a></li>
102 <li id="select_next"><a href="#">Select Next Cell</a></li>
103 <li class="divider"></li>
104 <li id="edit_nb_metadata"><a href="#">Edit Notebook Metadata</a></li>
103 </ul>
105 </ul>
104 </li>
106 </li>
105 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a>
107 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a>
General Comments 0
You need to be logged in to leave comments. Login now