From 49d9820a444d58c993e4ed3017c2d2819c1274e3 Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Sat, 25 Jan 2014 23:25:17 -0300 Subject: [PATCH] create tag item on left list --- wise-webapp/src/main/webapp/js/mindmapList.js | 10 ++++++++-- wise-webapp/src/main/webapp/jsp/mindmapList.jsp | 9 ++++----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/wise-webapp/src/main/webapp/js/mindmapList.js b/wise-webapp/src/main/webapp/js/mindmapList.js index 7b138557..024a4605 100644 --- a/wise-webapp/src/main/webapp/js/mindmapList.js +++ b/wise-webapp/src/main/webapp/js/mindmapList.js @@ -258,8 +258,14 @@ $(function () { $("#newFolderBtn").click( function () { $("#new-folder-dialog-modal").dialogForm({ - //redirect:"c/maps/{header.resourceId}/edit", - //url:"c/restful/maps" + url:"c/restful/labels", + postUpdate: function (data) { + $("#foldersContainer").find("ul").append( + $("
  • ").append( + " " + data.title + "" + ) + ) + } }); } ); diff --git a/wise-webapp/src/main/webapp/jsp/mindmapList.jsp b/wise-webapp/src/main/webapp/jsp/mindmapList.jsp index 9a6954b6..82cc365c 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapList.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapList.jsp @@ -313,13 +313,12 @@