//---------------------------------------------------------------------------- // Copyright (C) 2013 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. //---------------------------------------------------------------------------- //============================================================================ // Utility for modal dialogs with bootstrap //============================================================================ IPython.namespace('IPython.dialog'); IPython.dialog = (function (IPython) { "use strict"; var modal = function (options) { var modal = $("
") .addClass("modal") .addClass("fade") .attr("role", "dialog"); var dialog = $("
") .addClass("modal-dialog") .appendTo(modal); var dialog_content = $("
") .addClass("modal-content") .appendTo(dialog); dialog_content.append( $("
") .addClass("modal-header") .append($("