diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js
index 6dfb51fca..6df07a2fd 100644
--- a/IPython/html/static/notebook/js/notebook.js
+++ b/IPython/html/static/notebook/js/notebook.js
@@ -1530,7 +1530,8 @@ var IPython = (function (IPython) {
* @return {String} This notebook's name
*/
Notebook.prototype.get_notebook_name = function () {
- return this.notebook_name;
+ nbname = this.notebook_name.substring(0,this.notebook_name.length-6);
+ return nbname;
};
/**
@@ -1680,7 +1681,6 @@ var IPython = (function (IPython) {
// time the ajax call for autosave tuning purposes.
var start = new Date().getTime();
- console.log(JSON.stringify(data))
// We do the call with settings so we can set cache to false.
var settings = {
processData : false,
@@ -1748,8 +1748,9 @@ var IPython = (function (IPython) {
};
- Notebook.prototype.notebook_rename = function (new_name) {
+ Notebook.prototype.notebook_rename = function (nbname) {
var that = this;
+ var new_name = nbname + '.ipynb'
var name = {'notebook_name': new_name};
var settings = {
processData : false,
diff --git a/IPython/html/static/notebook/js/savewidget.js b/IPython/html/static/notebook/js/savewidget.js
index 36a01f32d..2b982a1a0 100644
--- a/IPython/html/static/notebook/js/savewidget.js
+++ b/IPython/html/static/notebook/js/savewidget.js
@@ -115,7 +115,6 @@ var IPython = (function (IPython) {
SaveWidget.prototype.update_notebook_name = function () {
var nbname = IPython.notebook.get_notebook_name();
- console.log("UPDATED")
this.element.find('span#notebook_name').html(nbname);
};
diff --git a/IPython/html/static/notebook/js/tooltip.js b/IPython/html/static/notebook/js/tooltip.js
index d7e6abf48..2939a9e84 100644
--- a/IPython/html/static/notebook/js/tooltip.js
+++ b/IPython/html/static/notebook/js/tooltip.js
@@ -225,8 +225,8 @@ var IPython = (function (IPython) {
var callbacks = {
'object_info_reply': $.proxy(this._show, this)
}
- var oir_token = this.extract_oir_token(line)
- cell.kernel.object_info_request(oir_token, callbacks);
+ var oir_token = this.extract_oir_token(line);
+ var msg_id = cell.session.kernel.object_info_request(oir_token, callbacks);
}
// make an imediate completion request