diff --git a/wise-webapp/src/main/resources/messages_en.properties b/wise-webapp/src/main/resources/messages_en.properties index 63800dd0..93c009de 100644 --- a/wise-webapp/src/main/resources/messages_en.properties +++ b/wise-webapp/src/main/resources/messages_en.properties @@ -73,6 +73,7 @@ ONLY_VIEW_PRIVATE = This mindmap can be viewed by you only. ALL_VIEW_PUBLIC = This mindmap can be viewed by any user. NEW_MAP_MSG=Create a new map NEW_LABEL_MSG=Create a new label +ADD_LABEL_MSG=Add label to maps PUBLISH=Publish PUBLISH_DETAILS=By publishing the map you make it visible to everyone on the Internet. ACCOUNT_DETAIL=Do you want to change you user options?. Here is the place. @@ -137,6 +138,7 @@ FILTERS=Filter MORE=More ADD_NEW_MAP=Add New Map ADD_NEW_LABEL=Add New Label +ADD_LABEL=Add Label IMPORTING=Importing ... NEW=New NEW_MAP=Map @@ -144,7 +146,8 @@ NEW_LABEL=Label MIND_FILE=File PARENT_LABEL=Nest label under CHOOSE_COLOR=Choose a color -SELECT_LABEL=Please select a parent label +CHOOSE_LABEL=Choose a label +SELECT_LABEL=Please select a label NO_SEARCH_RESULT=No mindmap available for the selected filter criteria SEARCH=Search GENERAL=General diff --git a/wise-webapp/src/main/webapp/js/buttonActions.js b/wise-webapp/src/main/webapp/js/buttonActions.js index d897e095..1bbe0d20 100644 --- a/wise-webapp/src/main/webapp/js/buttonActions.js +++ b/wise-webapp/src/main/webapp/js/buttonActions.js @@ -18,6 +18,22 @@ $(function () { } ); + $("#linkBtn").click( + function () { + fetchLabels({ + postUpdate: function(data) { + $.each(data.labels, function(index, value) { + $("#labelList").append($('').val(index).html(value.title)); + }) + } + }); + $("#add-label-dialog-modal").dialogForm({ + //url:"c/restful/labels", + //postUpdate: createLabelItem + }); + } + ); + $("#duplicateBtn").click(function () { // Map to be cloned ... var tableElem = $('#mindmapListTable'); diff --git a/wise-webapp/src/main/webapp/jsp/mindmapList.jsp b/wise-webapp/src/main/webapp/jsp/mindmapList.jsp index 1b800ca5..b1ed0e93 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapList.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapList.jsp @@ -220,6 +220,11 @@ code="DELETE"/> + + + +
" class="modal fade"> + + + +
+