From 04d068c71082d195469ba2434ad524a488955f6b 2013-06-09 21:48:44 From: MinRK Date: 2013-06-09 21:48:44 Subject: [PATCH] add missing dialog.js --- diff --git a/IPython/frontend/html/notebook/static/base/js/dialog.js b/IPython/frontend/html/notebook/static/base/js/dialog.js new file mode 100644 index 0000000..a792a17 --- /dev/null +++ b/IPython/frontend/html/notebook/static/base/js/dialog.js @@ -0,0 +1,78 @@ +//---------------------------------------------------------------------------- +// 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) { + + var modal = function (options) { + var dialog = $("
").addClass("modal").attr("role", "dialog"); + dialog.append( + $("
") + .addClass("modal-header") + .append($("