mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
Fix history render
This commit is contained in:
parent
45ec4b371f
commit
bcd3384829
@ -80,8 +80,8 @@ public class MindmapController extends BaseController {
|
|||||||
return new RestMindmapList(mindmaps, user);
|
return new RestMindmapList(mindmaps, user);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(method = RequestMethod.GET, value = "/maps/{id}/history", produces = {"application/json", "application/xml"})
|
@RequestMapping(method = RequestMethod.GET, value = "/maps/{id}/history/", produces = {"application/json", "application/xml"})
|
||||||
public RestMindmapHistoryList retrieveHistory(@PathVariable int id) {
|
public RestMindmapHistoryList fetchHistory(@PathVariable int id) {
|
||||||
final List<MindMapHistory> histories = mindmapService.findMindmapHistory(id);
|
final List<MindMapHistory> histories = mindmapService.findMindmapHistory(id);
|
||||||
final RestMindmapHistoryList result = new RestMindmapHistoryList();
|
final RestMindmapHistoryList result = new RestMindmapHistoryList();
|
||||||
for (MindMapHistory history : histories) {
|
for (MindMapHistory history : histories) {
|
||||||
|
@ -105,8 +105,9 @@ public class MindmapController {
|
|||||||
|
|
||||||
@RequestMapping(value = "maps/{id}/view", method = RequestMethod.GET)
|
@RequestMapping(value = "maps/{id}/view", method = RequestMethod.GET)
|
||||||
public String showMindmapViewerPage(@PathVariable int id, @NotNull Model model) throws WiseMappingException {
|
public String showMindmapViewerPage(@PathVariable int id, @NotNull Model model) throws WiseMappingException {
|
||||||
return showEditorPage(id, model, false);
|
final String result = showPrintPage(id, model);
|
||||||
}
|
model.addAttribute("readOnlyMode", true);
|
||||||
|
return result; }
|
||||||
|
|
||||||
@RequestMapping(value = "maps/{id}/try", method = RequestMethod.GET)
|
@RequestMapping(value = "maps/{id}/try", method = RequestMethod.GET)
|
||||||
public String showMindmapTryPage(@PathVariable int id, @NotNull Model model) throws WiseMappingException {
|
public String showMindmapTryPage(@PathVariable int id, @NotNull Model model) throws WiseMappingException {
|
||||||
@ -119,7 +120,7 @@ public class MindmapController {
|
|||||||
@RequestMapping(value = "maps/{id}/{hid}/view", method = RequestMethod.GET)
|
@RequestMapping(value = "maps/{id}/{hid}/view", method = RequestMethod.GET)
|
||||||
public String showMindmapViewerRevPage(@PathVariable int id, @PathVariable int hid, @NotNull Model model) throws WiseMappingException {
|
public String showMindmapViewerRevPage(@PathVariable int id, @PathVariable int hid, @NotNull Model model) throws WiseMappingException {
|
||||||
|
|
||||||
final String result = showMindmapEditorPage(id, model);
|
final String result = showPrintPage(id, model);
|
||||||
model.addAttribute("readOnlyMode", true);
|
model.addAttribute("readOnlyMode", true);
|
||||||
model.addAttribute("hid", String.valueOf(hid));
|
model.addAttribute("hid", String.valueOf(hid));
|
||||||
return result;
|
return result;
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<%@ include file="/jsp/pageHeaders.jsf" %>
|
<%@ include file="/jsp/pageHeaders.jsf" %>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var mapId = '${mindmap.id}';
|
var mapId = '${mindmap.id}';
|
||||||
|
var historyId = '${hid}';
|
||||||
var memoryPersistence = true;
|
var memoryPersistence = true;
|
||||||
var readOnly = true;
|
var readOnly = true;
|
||||||
var userOptions = ${mindmap.properties};
|
var userOptions = ${mindmap.properties};
|
||||||
|
Loading…
Reference in New Issue
Block a user