From 6da13721d6dede004eeae518603de8c3cc5fb70b 2012-05-31 20:08:16 From: Matthias Bussonnier <carreau@Aspire.(none)> Date: 2012-05-31 20:08:16 Subject: [PATCH] tooltip to mac --- diff --git a/IPython/frontend/html/notebook/static/js/notebookmain.js b/IPython/frontend/html/notebook/static/js/notebookmain.js index 6a613ef..01b19eb 100644 --- a/IPython/frontend/html/notebook/static/js/notebookmain.js +++ b/IPython/frontend/html/notebook/static/js/notebookmain.js @@ -30,6 +30,7 @@ $(document).ready(function () { IPython.save_widget = new IPython.SaveWidget('span#save_widget'); IPython.menubar = new IPython.MenuBar('#menubar') IPython.toolbar = new IPython.ToolBar('#toolbar') + IPython.tooltip = new IPython.Tooltip() IPython.notification_widget = new IPython.NotificationWidget('#notification') IPython.layout_manager.do_resize(); diff --git a/IPython/frontend/html/notebook/templates/notebook.html b/IPython/frontend/html/notebook/templates/notebook.html index 30f7718..b05445a 100644 --- a/IPython/frontend/html/notebook/templates/notebook.html +++ b/IPython/frontend/html/notebook/templates/notebook.html @@ -193,6 +193,8 @@ data-notebook-id={{notebook_id}} </div> </div> +<div id='tooltip' class='tooltip smalltooltip ui-corner-all hidden'></div> + {% end %} @@ -230,6 +232,7 @@ data-notebook-id={{notebook_id}} <script src="{{ static_url("js/toolbar.js") }}" type="text/javascript" charset="utf-8"></script> <script src="{{ static_url("js/notebook.js") }}" type="text/javascript" charset="utf-8"></script> <script src="{{ static_url("js/notificationwidget.js") }}" type="text/javascript" charset="utf-8"></script> +<script src="{{ static_url("js/tooltip.js") }}" type="text/javascript" charset="utf-8"></script> <script src="{{ static_url("js/notebookmain.js") }}" type="text/javascript" charset="utf-8"></script> <script src="{{ static_url("js/context-hint.js") }} charset="utf-8"></script>