diff --git a/IPython/html/static/notebook/js/menubar.js b/IPython/html/static/notebook/js/menubar.js index e09cf23..fee79d6 100644 --- a/IPython/html/static/notebook/js/menubar.js +++ b/IPython/html/static/notebook/js/menubar.js @@ -136,6 +136,10 @@ var IPython = (function (IPython) { this.element.find('#select_next').click(function () { IPython.notebook.select_next(); }); + this.element.find('#edit_nb_metadata').click(function () { + IPython.notebook.edit_metadata(); + }); + // View this.element.find('#toggle_header').click(function () { $('div#header').toggle(); diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index 88891ac..390c829 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -437,6 +437,14 @@ var IPython = (function (IPython) { this.element.animate({scrollTop:0}, 0); }; + // Edit Notebook metadata + + Notebook.prototype.edit_metadata = function () { + var that = this; + IPython.dialog.edit_metadata(this.metadata, function (md) { + that.metadata = md; + }, 'Notebook'); + }; // Cell indexing, retrieval, etc. diff --git a/IPython/html/templates/notebook.html b/IPython/html/templates/notebook.html index f35a3c3..0ee4706 100644 --- a/IPython/html/templates/notebook.html +++ b/IPython/html/templates/notebook.html @@ -100,6 +100,8 @@ class="notebook_app"
  • Select Previous Cell
  • Select Next Cell
  • +
  • +
  • Edit Notebook Metadata