##// END OF EJS Templates
drop file ext off notebook name in notebook
Zachary Sailer -
Show More
@@ -1530,7 +1530,8 var IPython = (function (IPython) {
1530 * @return {String} This notebook's name
1530 * @return {String} This notebook's name
1531 */
1531 */
1532 Notebook.prototype.get_notebook_name = function () {
1532 Notebook.prototype.get_notebook_name = function () {
1533 return this.notebook_name;
1533 nbname = this.notebook_name.substring(0,this.notebook_name.length-6);
1534 return nbname;
1534 };
1535 };
1535
1536
1536 /**
1537 /**
@@ -1680,7 +1681,6 var IPython = (function (IPython) {
1680
1681
1681 // time the ajax call for autosave tuning purposes.
1682 // time the ajax call for autosave tuning purposes.
1682 var start = new Date().getTime();
1683 var start = new Date().getTime();
1683 console.log(JSON.stringify(data))
1684 // We do the call with settings so we can set cache to false.
1684 // We do the call with settings so we can set cache to false.
1685 var settings = {
1685 var settings = {
1686 processData : false,
1686 processData : false,
@@ -1748,8 +1748,9 var IPython = (function (IPython) {
1748 };
1748 };
1749
1749
1750
1750
1751 Notebook.prototype.notebook_rename = function (new_name) {
1751 Notebook.prototype.notebook_rename = function (nbname) {
1752 var that = this;
1752 var that = this;
1753 var new_name = nbname + '.ipynb'
1753 var name = {'notebook_name': new_name};
1754 var name = {'notebook_name': new_name};
1754 var settings = {
1755 var settings = {
1755 processData : false,
1756 processData : false,
@@ -115,7 +115,6 var IPython = (function (IPython) {
115
115
116 SaveWidget.prototype.update_notebook_name = function () {
116 SaveWidget.prototype.update_notebook_name = function () {
117 var nbname = IPython.notebook.get_notebook_name();
117 var nbname = IPython.notebook.get_notebook_name();
118 console.log("UPDATED")
119 this.element.find('span#notebook_name').html(nbname);
118 this.element.find('span#notebook_name').html(nbname);
120 };
119 };
121
120
@@ -225,8 +225,8 var IPython = (function (IPython) {
225 var callbacks = {
225 var callbacks = {
226 'object_info_reply': $.proxy(this._show, this)
226 'object_info_reply': $.proxy(this._show, this)
227 }
227 }
228 var oir_token = this.extract_oir_token(line)
228 var oir_token = this.extract_oir_token(line);
229 cell.kernel.object_info_request(oir_token, callbacks);
229 var msg_id = cell.session.kernel.object_info_request(oir_token, callbacks);
230 }
230 }
231
231
232 // make an imediate completion request
232 // make an imediate completion request
General Comments 0
You need to be logged in to leave comments. Login now