diff --git a/wise-webapp/src/main/webapp/jsp/mindmapList.jsp b/wise-webapp/src/main/webapp/jsp/mindmapList.jsp index 0c7d3e46..c7ad7f37 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapList.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapList.jsp @@ -265,6 +265,16 @@ icons: { primary: "ui-icon-trash" } }); + $("#buttons .printMap").button({ + icons: { primary: "ui-icon-trash" } + }).click(function() { + var mapIds = $('#mindmapListTable').dataTableExt.getSelectedMapsIds(); + if (mapIds.length > 0) { + window.open('c/map/' + mapIds[0] + '/print.htm'); + } + }); + + $("#buttons .moreActions").button({ icons: { primary: "ui-icon-triangle-1-s" } }); @@ -379,6 +389,7 @@ + diff --git a/wise-webapp/src/main/webapp/jsp/mindmapPrint.jsp b/wise-webapp/src/main/webapp/jsp/mindmapPrint.jsp index dcfc7f8c..26b856d2 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapPrint.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapPrint.jsp @@ -12,15 +12,9 @@ <%@ include file="/jsp/init.jsp" %> -<% - Calendar calendar = Calendar.getInstance(request.getLocale()); - calendar.setTimeInMillis(System.currentTimeMillis()); - DateFormat dateFormat = SimpleDateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.DEFAULT, request.getLocale()); - String todayString = dateFormat.format(calendar.getTime()); -%> - + <spring:message code="SITE.TITLE"/> - ${mindmap.title} @@ -112,7 +106,7 @@
<%--
--%> - <%--
--%> + <%--
--%> <%--
--%>