From e61b6aef47e12f89aaa86a39312799954e5adeea Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Mon, 10 Mar 2014 15:26:04 -0700 Subject: [PATCH] Add logic to close tt when cell is unselected --- IPython/html/static/notebook/js/codecell.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/IPython/html/static/notebook/js/codecell.js b/IPython/html/static/notebook/js/codecell.js index 4d0ee16ab..722b0a1be 100644 --- a/IPython/html/static/notebook/js/codecell.js +++ b/IPython/html/static/notebook/js/codecell.js @@ -557,6 +557,18 @@ var IPython = (function (IPython) { return data; }; + /** + * handle cell level logic when a cell is unselected + * @method unselect + * @return is the action being taken + */ + CodeCell.prototype.unselect = function () { + var cont = Cell.prototype.unselect.apply(this); + if (cont) { + IPython.tooltip.close(); + } + return cont; + }; IPython.CodeCell = CodeCell;