diff --git a/IPython/html/static/notebook/js/celltoolbar.js b/IPython/html/static/notebook/js/celltoolbar.js index 79a83e7c2..fa3b6e19c 100644 --- a/IPython/html/static/notebook/js/celltoolbar.js +++ b/IPython/html/static/notebook/js/celltoolbar.js @@ -329,7 +329,8 @@ var IPython = (function (IPython) { * * @param list_list {list of sublist} List of sublist of metadata value and name in the dropdown list. * subslit shoud contain 2 element each, first a string that woul be displayed in the dropdown list, - * and second the corresponding value to be passed to setter/return by getter. + * and second the corresponding value to be passed to setter/return by getter. the corresponding value + * should not be "undefined" or behavior can be unexpected. * @param setter {function( cell, newValue )} * A setter method to set the newValue * @param getter {function( cell )} @@ -341,7 +342,7 @@ var IPython = (function (IPython) { * @example * * var select_type = CellToolbar.utils.select_ui_generator([ - * ["" , undefined ], + * ["" , "None" ], * ["Header Slide" , "header_slide" ], * ["Slide" , "slide" ], * ["Fragment" , "fragment" ], diff --git a/IPython/html/static/notebook/js/celltoolbarpresets/slideshow.js b/IPython/html/static/notebook/js/celltoolbarpresets/slideshow.js index c7fc3ef6a..aa8f9d244 100644 --- a/IPython/html/static/notebook/js/celltoolbarpresets/slideshow.js +++ b/IPython/html/static/notebook/js/celltoolbarpresets/slideshow.js @@ -9,14 +9,6 @@ //CellToolbar Example //============================================================================ -/** - * $.getScript('/static/js/celltoolbarpresets/slideshow.js'); - * ``` - * or more generally - * ``` - * $.getScript('url to this file'); - * ``` - */ // IIFE without asignement, we don't modifiy the IPython namespace (function (IPython) { "use strict"; @@ -25,7 +17,7 @@ var slideshow_preset = []; var select_type = CellToolbar.utils.select_ui_generator([ - ["-" ,undefined ], + ["-" ,"-" ], ["Slide" ,"slide" ], ["Sub-Slide" ,"subslide" ], ["Fragment" ,"fragment" ],