##// END OF EJS Templates
Browser window title follows the name of the notebook.
Brian E. Granger -
Show More
@@ -31,6 +31,7 b' var IPython = (function (IPython) {'
31 var that = this;
31 var that = this;
32 this.element.find('button#save_notebook').click(function () {
32 this.element.find('button#save_notebook').click(function () {
33 IPython.notebook.save_notebook();
33 IPython.notebook.save_notebook();
34 that.set_document_title();
34 });
35 });
35 };
36 };
36
37
@@ -42,9 +43,16 b' var IPython = (function (IPython) {'
42
43
43 SaveWidget.prototype.set_notebook_name = function (nbname) {
44 SaveWidget.prototype.set_notebook_name = function (nbname) {
44 this.element.find('input#notebook_name').attr('value',nbname);
45 this.element.find('input#notebook_name').attr('value',nbname);
46 this.set_document_title();
45 }
47 }
46
48
47
49
50 SaveWidget.prototype.set_document_title = function () {
51 nbname = this.get_notebook_name();
52 document.title = 'IPy: ' + nbname;
53 };
54
55
48 SaveWidget.prototype.get_notebook_id = function () {
56 SaveWidget.prototype.get_notebook_id = function () {
49 return this.element.find('span#notebook_id').text()
57 return this.element.find('span#notebook_id').text()
50 };
58 };
General Comments 0
You need to be logged in to leave comments. Login now