diff --git a/core-js/pom.xml b/core-js/pom.xml
index 9931cbc4..4e27000e 100644
--- a/core-js/pom.xml
+++ b/core-js/pom.xml
@@ -53,6 +53,7 @@
${basedir}/target/tmp/Utils-min.js
${basedir}/../mindplot/src/main/javascript/Options.js
${basedir}/../mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.js
+ ${basedir}/../mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.Request.js
diff --git a/mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.Request.js b/mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.Request.js
new file mode 100644
index 00000000..3988c9f4
--- /dev/null
+++ b/mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.Request.js
@@ -0,0 +1,49 @@
+BootstrapDialog.Request = new Class({
+
+ Extends: BootstrapDialog,
+
+ initialize: function(url, requestOptions, options) {
+ //this.parent(options);
+ this.requestOptions = requestOptions || {};
+ this.requestOptions.cache = false;
+ var me = this;
+ this.requestOptions.fail = function(xhr) {
+ // Intercept form requests ...
+ console.log("Failure:");
+ console.log(xhr);
+ };
+
+ this.requestOptions.success = function() {
+ // Intercept form requests ...
+ var forms = me._native.find('form');
+ _.each(forms, function(form) {
+ $(form).on('submit', function(event) {
+ // Intercept form ...
+ me.requestOptions.url = form.action;
+ me.requestOptions.method = form.method ? form.method : 'post';
+ $.ajax(me.requestOptions);
+ event.stopPropagation();
+ return false;
+ });
+ });
+ };
+
+ var request = $('
');
+ request.load(url, function() {
+ me._native = $(this).find('.modal');
+ if (!me._native) {
+ throw new Error('modal not found');
+ } else {
+ $(document.body).append(me._native);
+ me.show();
+ }
+ });
+
+ this._native.on('hidden.bs.modal', function () {
+ $(this).remove();
+ });
+
+ }
+
+
+});
diff --git a/wise-webapp/src/main/webapp/css/pageHeaders.css b/wise-webapp/src/main/webapp/css/pageHeaders.css
index 6af04beb..c5344643 100644
--- a/wise-webapp/src/main/webapp/css/pageHeaders.css
+++ b/wise-webapp/src/main/webapp/css/pageHeaders.css
@@ -130,4 +130,5 @@ div#headerActions a:hover, div#headerActions a:active, div#headerActions a:link,
#dialogMainForm label
{
font-weight:normal;
+ display: block;
}