From 3eac34548027d0a3e171a8b18bcc1374de035521 Mon Sep 17 00:00:00 2001 From: MinRK Date: Thu, 29 Aug 2013 15:44:34 -0700 Subject: [PATCH] update example custom.js fix event for at-page-load events use font-awesome icon, not jquery-ui closes #3998 --- IPython/html/static/custom/custom.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/IPython/html/static/custom/custom.js b/IPython/html/static/custom/custom.js index a276b2d02..f8d1afee0 100644 --- a/IPython/html/static/custom/custom.js +++ b/IPython/html/static/custom/custom.js @@ -17,12 +17,14 @@ * Create a custom button in toolbar that execute `%qtconsole` in kernel * and hence open a qtconsole attached to the same kernel as the current notebook * - * $([IPython.events]).on('notebook_loaded.Notebook', function(){ + * $([IPython.events]).on('app_initialized.NotebookApp', function(){ * IPython.toolbar.add_buttons_group([ * { * 'label' : 'run qtconsole', - * 'icon' : 'ui-icon-calculator', // select your icon from http://jqueryui.com/themeroller/ - * 'callback': function(){IPython.notebook.kernel.execute('%qtconsole')} + * 'icon' : 'icon-terminal', // select your icon from http://fortawesome.github.io/Font-Awesome/icons + * 'callback': function () { + * IPython.notebook.kernel.execute('%qtconsole') + * } * } * // add more button here if needed. * ]);