/wisemapping
@@ -23,11 +23,11 @@
# HSQL Configuration properties
-database.url=jdbc:hsqldb:file:${database.base.url}/db/wisemapping
-database.driver=org.hsqldb.jdbc.JDBCDriver
-database.hibernate.dialect=org.hibernate.dialect.HSQLDialect
-database.username=sa
-database.password=
+#database.url=jdbc:hsqldb:file:${database.base.url}/db/wisemapping
+#database.driver=org.hsqldb.jdbc.JDBCDriver
+#database.hibernate.dialect=org.hibernate.dialect.HSQLDialect
+#database.username=sa
+#database.password=
database.validation.enabled=false
database.validation.query=
diff --git a/wise-webapp/src/main/webapp/js/mindmapList.js b/wise-webapp/src/main/webapp/js/mindmapList.js
index fc2fa0f3..0dbe9196 100644
--- a/wise-webapp/src/main/webapp/js/mindmapList.js
+++ b/wise-webapp/src/main/webapp/js/mindmapList.js
@@ -85,7 +85,8 @@ jQuery.fn.dialogForm = function (options) {
var acceptBtn = $('#' + containerId + ' .btn-accept');
acceptBtn.button('reset');
- acceptBtn.unbind('click').click( function (event) {
+ var dialogElem = this;
+ acceptBtn.unbind('click').one('click', function (event) {
var formData = {};
$('#' + containerId + ' input').each(function (index, elem) {
formData[elem.name] = elem.value;
@@ -138,7 +139,6 @@ jQuery.fn.dialogForm = function (options) {
};
$(acceptBtn).button('loading');
- var dialogElem = this;
jQuery.ajax(url, {
async: false,
dataType: 'json',
@@ -155,11 +155,11 @@ jQuery.fn.dialogForm = function (options) {
501: onError
}
});
- }.bind(this));
+ });
$('#' + containerId + ' .btn-cancel').click(function () {
this.modal('hide');
- }.bind(this));
+ });
// Register enter input to submit...
$("input").keypress(function(event) {
@@ -174,6 +174,7 @@ jQuery.fn.dialogForm = function (options) {
$(this).find('input:first').focus();
});
this.modal();
+ this.first('input').focus();
};
@@ -357,7 +358,7 @@ $(function () {
}
});
- $("#renameBtn").click(function () {
+ $("#renameBtn").click(function (event) {
// Map to be cloned ...
var tableElem = $('#mindmapListTable');
var rows = tableElem.dataTableExt.getSelectedRows();
@@ -446,12 +447,14 @@ $(function () {
var mapIds = $('#mindmapListTable').dataTableExt.getSelectedMapsIds();
if (mapIds.length > 0 || ignore) {
var mapId = mapIds[0];
- $('#' + dialogElemId + ' .modal-body').load(urlTemplate.replace("{mapId}", mapId),
+ var modalElement = $('#' + dialogElemId);
+ modalElement.find('.modal-body').load(urlTemplate.replace("{mapId}", mapId),
function () {
- $('#' + dialogElemId + ' .btn-accept').unbind('click').click(function () {
+ modalElement.find('.btn-accept').unbind('click').click(function () {
submitDialogForm();
});
- $('#' + dialogElemId).modal();
+ modalElement.modal();
+ //TODO here we need to make focus on a input tag
});
}
};
@@ -647,7 +650,9 @@ function prepareLabelList(labels) {
});
//add the defaultValue
- labelList.append('')
+ if (labels.length > 0) {
+ labelList.append('')
+ }
labelList.append(defaultValue);
}
diff --git a/wise-webapp/src/main/webapp/jsp/mindmapImport.jsp b/wise-webapp/src/main/webapp/jsp/mindmapImport.jsp
index ff0d6846..21c11f82 100644
--- a/wise-webapp/src/main/webapp/jsp/mindmapImport.jsp
+++ b/wise-webapp/src/main/webapp/jsp/mindmapImport.jsp
@@ -17,7 +17,7 @@
-