Working on fixing mindplot loading
@ -31,7 +31,7 @@ div#footerLogo {
|
|||||||
height: 56px;
|
height: 56px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: list-item;
|
display: list-item;
|
||||||
list-style-image: url(../images/logo-xsmall.png);
|
list-style-image: url(../../images/logo-xsmall.png);
|
||||||
list-style-position: inside;
|
list-style-position: inside;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
top: -30px;
|
top: -30px;
|
||||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 0 B |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 0 B |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 0 B |
Before Width: | Height: | Size: 790 B |
Before Width: | Height: | Size: 817 B |
@ -1,65 +1,29 @@
|
|||||||
<%@page pageEncoding="UTF-8" %>
|
<%@page pageEncoding="UTF-8" %>
|
||||||
<%@include file="/jsp/init.jsp" %>
|
<%@include file="/jsp/init.jsp" %>
|
||||||
|
|
||||||
<!DOCTYPE HTML>
|
|
||||||
|
|
||||||
<%--@elvariable id="mindmap" type="com.wisemapping.model.Mindmap"--%>
|
<%--@elvariable id="mindmap" type="com.wisemapping.model.Mindmap"--%>
|
||||||
<%--@elvariable id="editorTryMode" type="java.lang.Boolean"--%>
|
<!DOCTYPE HTML>
|
||||||
<%--@elvariable id="editorTryMode" type="java.lang.String"--%>
|
|
||||||
|
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<base href="${requestScope['site.baseurl']}/">
|
<base href="${requestScope['site.baseurl']}/static/mindplot/">
|
||||||
<title><spring:message code="SITE.TITLE"/> - ${mindmap.title} </title>
|
<title><spring:message code="SITE.TITLE"/> - ${mindmap.title} </title>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||||
<!--[if lt IE 9]>
|
<title><spring:message code="SITE.TITLE"/> - <c:out value="${mindmap.title}"/></title>
|
||||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
<link rel="stylesheet/less" type="text/css" href="../../css/embedded.less"/>
|
||||||
<![endif]-->
|
<script type='text/javascript' src="../../js/less.js"/></script>
|
||||||
|
<link rel="icon" href="../../images/favicon.ico" type="image/x-icon"/>
|
||||||
<link rel="stylesheet/less" type="text/css" href="css/embedded.less"/>
|
<link rel="shortcut icon" href="../../images/favicon.ico" type="image/x-icon"/>
|
||||||
<script type='text/javascript' src='js/jquery.js'></script>
|
|
||||||
<script type='text/javascript' src='js/jquery-mousewheel.js'></script>
|
|
||||||
<script type='text/javascript' src='js/hotkeys.js'></script>
|
|
||||||
<script type='text/javascript' src='js/underscorejs.js'></script>
|
|
||||||
<script type='text/javascript' src='bootstrap/js/bootstrap.min.js'></script>
|
|
||||||
<script type='text/javascript' src='js/mootools-core.js'></script>
|
|
||||||
<script type='text/javascript' src='js/core.js'></script>
|
|
||||||
<script type='text/javascript' src='js/less.js'></script>
|
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var mapId = '${mindmap.id}';
|
var mapId = '${mindmap.id}';
|
||||||
|
var memoryPersistence = true;
|
||||||
$(document).on('loadcomplete', function (resource) {
|
var readOnly = true;
|
||||||
|
|
||||||
// Configure designer options ...
|
|
||||||
var options = loadDesignerOptions();
|
|
||||||
options.size.height = options.size.height + 50;
|
|
||||||
options.locale = '${locale}';
|
|
||||||
|
|
||||||
|
|
||||||
var userOptions = ${mindmap.properties};
|
var userOptions = ${mindmap.properties};
|
||||||
options.zoom = ${zoom};
|
var locale = '${locale}';
|
||||||
|
var isAuth = ${principal != null};
|
||||||
// Set map id ...
|
|
||||||
options.mapId = mapId;
|
|
||||||
|
|
||||||
// Print is read only ...
|
|
||||||
options.readOnly = true;
|
|
||||||
|
|
||||||
// Configure persistence ...
|
|
||||||
options.persistenceManager = new mindplot.LocalStorageManager("c/restful/maps/{id}/document/xml${principal!=null?'':'-pub'}",true);
|
|
||||||
|
|
||||||
// Build designer ...
|
|
||||||
var designer = buildDesigner(options);
|
|
||||||
|
|
||||||
// Load map ...
|
|
||||||
var persistence = mindplot.PersistenceManager.getInstance();
|
|
||||||
var mindmap = mindmap = persistence.load(mapId);
|
|
||||||
designer.loadMap(mindmap);
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
<%@ include file="/jsp/googleAnalytics.jsf" %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="mapContainer">
|
<div id="mapContainer">
|
||||||
@ -79,7 +43,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" src="js/editor.js"></script>
|
<script src="loader.js"></script>
|
||||||
<%@ include file="/jsp/googleAnalytics.jsf" %>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
<%@include file="/jsp/init.jsp" %>
|
<%@include file="/jsp/init.jsp" %>
|
||||||
|
|
||||||
<%--@elvariable id="mindmap" type="com.wisemapping.model.Mindmap"--%>
|
<%--@elvariable id="mindmap" type="com.wisemapping.model.Mindmap"--%>
|
||||||
<%--@elvariable id="editorTryMode" type="java.lang.Boolean"--%>
|
|
||||||
<%--@elvariable id="editorTryMode" type="java.lang.String"--%>
|
|
||||||
|
|
||||||
<!DOCTYPE HTML>
|
<!DOCTYPE HTML>
|
||||||
|
|
||||||
|