From e45a24b3e0ae6a0500fe2ec7b65a0646919557f0 2012-07-11 14:20:22 From: Matthias BUSSONNIER Date: 2012-07-11 14:20:22 Subject: [PATCH] add maintoolbar file --- diff --git a/IPython/frontend/html/notebook/static/js/maintoolbar.js b/IPython/frontend/html/notebook/static/js/maintoolbar.js new file mode 100644 index 0000000..de7f4cd --- /dev/null +++ b/IPython/frontend/html/notebook/static/js/maintoolbar.js @@ -0,0 +1,182 @@ +//---------------------------------------------------------------------------- +// Copyright (C) 2008 The IPython Development Team +// +// Distributed under the terms of the BSD License. The full license is in +// the file COPYING, distributed as part of this software. +//---------------------------------------------------------------------------- + +//============================================================================ +// ToolBar +//============================================================================ + +var IPython = (function (IPython) { + + var MainToolBar = function (selector) { + this.selector = selector; + if (this.selector !== undefined) { + IPython.Cell.apply(this, arguments); + // move the rest ouside + this.construct(); + this.addDropDownList(); + this.bind_events(); + } + }; + + MainToolBar.prototype = new IPython.ToolBar(); + + MainToolBar.prototype.addDropDownList = function() { + var select = $(this.selector) + .append($('