From eb861b56fdb37d08f43183d0c44cfea5d4587040 Mon Sep 17 00:00:00 2001 From: Mariela Michalek Date: Sat, 29 Mar 2014 17:10:52 -0300 Subject: [PATCH] add BootstrapDialog --- .../libraries/bootstrap/BootstrapDialog.js | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.js diff --git a/mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.js b/mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.js new file mode 100644 index 00000000..5a993da1 --- /dev/null +++ b/mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.js @@ -0,0 +1,36 @@ +var BootstrapDialog = new Class({ + + initialize: function () { + this.content = $('
'); + }, + + + show: function (title) { + $assert(title, "message can not be null"); + + var modalDialog = $(''); + + modalDialog.modal(); + }, + + appendToContent:function (content){ + this.content.append(content); + } +});