Mode fixes.
This commit is contained in:
@@ -13,12 +13,14 @@
|
||||
<link rel="stylesheet" type="text/css" href="../css/bubble.css"/>
|
||||
|
||||
<!--<script type='text/javascript' src='../js/wiseLibrary.js'></script>-->
|
||||
<script type='text/javascript' src='../../../../../wise-webapp/src/main/webapp/js/mootools.js'></script>
|
||||
<script type='text/javascript' src='../js/mootools.js'></script>
|
||||
<script type='text/javascript' src='../../../../../wise-webapp/src/main/webapp/js/common.js'></script>
|
||||
<script type='text/javascript' src='../../../../../wise-webapp/src/main/webapp/js/windoo.js'></script>
|
||||
|
||||
<!--<script type='text/javascript' src='../js/wiseEditorLibrary.js'></script>-->
|
||||
<script type='text/javascript' src='../../../../../wise-webapp/src/main/webapp/js/IconPanel.js'></script>
|
||||
<script type='text/javascript' src='../../../../../wise-webapp/src/main/webapp/js/mooRainbow.js'></script>
|
||||
|
||||
|
||||
|
||||
<script type='text/javascript' src='../../../../../core-js/target/classes/core.js'></script>
|
||||
@@ -29,8 +31,7 @@
|
||||
<body>
|
||||
|
||||
|
||||
<form method="post" id="printForm" name="printForm" action='<c:url value="export.htm"/>' style="height:100%;"
|
||||
target="${mindmap.title}">
|
||||
<form method="post" id="printForm" name="printForm" action='' style="height:100%;" target="${mindmap.title}">
|
||||
<input type="hidden" name="action" value="print">
|
||||
<input type="hidden" name="mapId" value="${mindmap.id}">
|
||||
<input type="hidden" name="mapSvg" value="">
|
||||
@@ -40,7 +41,7 @@
|
||||
<div id="waitingContainer">
|
||||
<div class="loadingIcon"></div>
|
||||
<div class="loadingText">
|
||||
<spring:message code="EDITOR.LOADING"/>
|
||||
SYMB_EDITOR.LOADING
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -49,7 +50,7 @@
|
||||
<div id="errorContainer">
|
||||
<div class="loadingIcon"></div>
|
||||
<div class="loadingText">
|
||||
<spring:message code="EDITOR.ERROR_LOADING"/>
|
||||
SYMB_EDITOR.ERROR_LOADING
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -66,10 +67,11 @@
|
||||
});
|
||||
|
||||
|
||||
var mapId = '${mindmap.id}';
|
||||
var mapXml = '${mapXml}';
|
||||
var editorProperties = ${mindmap.properties};
|
||||
var isTryMode = ${editorTryMode};
|
||||
var mapId = '1';
|
||||
var mapXml = '<map name="38298" version="pela"><topic central="true" text="test" id="1"/></map>';
|
||||
|
||||
// @Todo: This must be persiste in the map properties ...
|
||||
var editorProperties = "{zoom:0.85,saveOnLoad:true}";
|
||||
|
||||
function printMap() {
|
||||
document.printForm.mapSvg.value = $("workspaceContainer").innerHTML;
|
||||
@@ -106,323 +108,233 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="actionsContainer"></div>
|
||||
<div>
|
||||
<c:url value="mymaps.htm" var="shareMap">
|
||||
<c:param name="action" value="collaborator"/>
|
||||
<c:param name="userEmail" value="${pageContext.request.userPrincipal.name}"/>
|
||||
</c:url>
|
||||
<div id="actionsContainer">
|
||||
</div>
|
||||
|
||||
<div id="toolbar">
|
||||
<div id="editTab" class="tabContent">
|
||||
<div id="file" class="buttonContainer" title="FILE">
|
||||
<fieldset>
|
||||
<legend>
|
||||
FILE>
|
||||
</legend>
|
||||
<div id="saveButton" class="button" title="SAVE">
|
||||
<div id="editTab" class="tabContent">
|
||||
<div id="file" class="buttonContainer" title="SYMB_ FILE">
|
||||
<fieldset>
|
||||
<legend>
|
||||
SYMB_FILE
|
||||
</legend>
|
||||
<div id="saveButton" class="button" title="SYMB_ SAVE">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SAVE
|
||||
SYMB_SAVE
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="discardButton" class="button" title="CLOSE">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
CLOSE
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="undoEdition" class="button" title="<spring:message code=" UNDO_EDITION
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="UNDO"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="redoEdition" class="button" title="<spring:message code=" REDO_EDITION
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="REDO"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="discardButton" class="button" title="SYMB_ CLOSE">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_CLOSE
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="undoEdition" class="button" title="SYMB_ UNDO_EDITION">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_UNDO
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="redoEdition" class="button" title="SYMB_ REDO_EDITION">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_REDO
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="print" class="button" title="<spring:message code=" PRINT
|
||||
"/>" onclick="printMap();">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="PRINT"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="print" class="button" title="SYMB_ PRINT" onclick="printMap();">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_PRINT
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="export" class="button" title="<spring:message code=" EXPORT
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="EXPORT"/>
|
||||
</p>
|
||||
</div>
|
||||
<a id="exportAnchor" href="export.htm?mapId=${mindmap.id}" rel="moodalbox 600px 400px"
|
||||
title="<spring:message code=" EXPORT_DETAILS"/>">
|
||||
</a>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div id="export" class="button" title="SYMB_ EXPORT">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_EXPORT
|
||||
</p>
|
||||
</div>
|
||||
<a id="exportAnchor" href="export.htm?mapId=${mindmap.id}" rel="moodalbox 600px 400px"
|
||||
title="SYMB_ EXPORT_DETAILS">
|
||||
</a>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div id="zoom" class="buttonContainer" title="Zoom In">
|
||||
<fieldset>
|
||||
<legend>
|
||||
<spring:message code="ZOOM"/>
|
||||
SYMB_ZOOM
|
||||
</legend>
|
||||
<div id="zoomIn" class="button" title="<spring:message code=" ZOOM_IN
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="IN"/>
|
||||
</p>
|
||||
<div id="zoomIn" class="button" title="SYMB_ ZOOM_IN">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_IN
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="zoomOut" class="button" title="<spring:message code=" ZOOM_OUT
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="OUT"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div id="zoomOut" class="button" title="SYMB_ ZOOM_OUT">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_OUT
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div id="node" class="buttonContainer" title="Node Properties">
|
||||
<fieldset>
|
||||
<legend>
|
||||
<spring:message code="TOPIC"/>
|
||||
SYMB_TOPIC
|
||||
</legend>
|
||||
<div id="topicShape" class="button comboButton" title="<spring:message code=" TOPIC_SHAPE
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="SHAPE"/>
|
||||
</p>
|
||||
<div id="topicShape" class="button comboButton" title="SYMB_ TOPIC_SHAPE">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_SHAPE
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="addTopic" class="button" title="<spring:message code=" TOPIC_ADD
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="ADD"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="deleteTopic" class="button" title="<spring:message code=" TOPIC_DELETE
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="DELETE"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="topicBorder" class="button comboButton" title="<spring:message code=" TOPIC_BORDER_COLOR
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="BORDER"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="topicColor" class="button comboButton" title="<spring:message code=" TOPIC_BACKGROUND_COLOR
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="COLOR"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="topicIcon" class="button comboButton" title="<spring:message code=" TOPIC_ICON
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="ICON"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="topicNote" class="button comboButton" title="<spring:message code=" TOPIC_NOTE
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="NOTE"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="topicLink" class="button" title="<spring:message code=" TOPIC_LINK
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="LINK"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="topicRelation" class="topicRelation button" title="<spring:message code=" TOPIC_RELATIONSHIP
|
||||
"/>">
|
||||
<div class="relationshiplabel toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="TOPIC_RELATIONSHIP"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div id="addTopic" class="button" title="SYMB_ TOPIC_ADD">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_ADD
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="deleteTopic" class="button" title="SYMB_ TOPIC_DELETE">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_DELETE
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="topicBorder" class="button comboButton" title="SYMB_ TOPIC_BORDER_COLOR">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_BORDER
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="topicColor" class="button comboButton" title="SYMB_ TOPIC_BACKGROUND_COLOR">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_COLOR
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="topicIcon" class="button comboButton" title="SYMB_ TOPIC_ICON">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_ICON
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="topicNote" class="button comboButton" title="SYMB_ TOPIC_NOTE">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_NOTE
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="topicLink" class="button" title="SYMB_ TOPIC_LINK">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_LINK
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="topicRelation" class="topicRelation button" title="SYMB_ TOPIC_RELATIONSHIP">
|
||||
<div class="relationshiplabel toolbarLabel">
|
||||
<p>
|
||||
SYMB_TOPIC_RELATIONSHIP
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div id="font" class="buttonContainer" title="Font Properties">
|
||||
<fieldset>
|
||||
<legend>
|
||||
<spring:message code="FONT"/>
|
||||
SYMB_FONT
|
||||
</legend>
|
||||
<div id="fontFamily" class="button comboButton" title="<spring:message code=" FONT_TYPE
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="TYPE"/>
|
||||
</p>
|
||||
<div id="fontFamily" class="button comboButton" title="SYMB_ FONT_TYPE">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_TYPE
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="fontSize" class="button comboButton" title="<spring:message code=" FONT_SIZE
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="SIZE"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="fontBold" class="button" title="<spring:message code=" FONT_BOLD
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="BOLD"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="fontItalic" class="button" title="<spring:message code=" FONT_ITALIC
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="ITALIC"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="fontColor" class="button comboButton" title="<spring:message code=" FONT_COLOR
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="COLOR"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div id="share" class="buttonContainer" title="Share Properties">
|
||||
<c:choose>
|
||||
<c:when test="${editorTryMode==false}">
|
||||
<fieldset>
|
||||
<legend>
|
||||
<spring:message code="COLLABORATION"/>
|
||||
</legend>
|
||||
<a id="tagAnchor" href="tags.htm?mapId=${mindmap.id}" rel="moodalbox 400px 200px wizard"
|
||||
title="<spring:message code=" TAGS_DETAILS"/>">
|
||||
<div id="tagIt" class="button" title="<spring:message code=" TAG
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="TAG"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<c:choose>
|
||||
<c:when test="${mindmap.owner==user}">
|
||||
<a id="shareAnchor" href="<c:out value="${shareMap}"/>&mapId=${mindmap.id}"
|
||||
rel="moodalbox 780px 530px wizard" title="
|
||||
<spring:message code="SHARE_DETAILS"/>
|
||||
">
|
||||
<div id="shareIt" class="button" title="<spring:message code=" COLLABORATION
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="SHARE"/>
|
||||
</p>
|
||||
<div id="fontSize" class="button comboButton" title="SYMB_ FONT_SIZE">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_SIZE
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="fontBold" class="button" title="SYMB_ FONT_BOLD">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_BOLD
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<a id="publishAnchor" href="publish.htm?mapId=${mindmap.id}"
|
||||
rel="moodalbox 600px 400px wizard"
|
||||
title="<spring:message code=" PUBLISH_MSG"/>">
|
||||
<div id="publishIt" class="button" title="<spring:message code=" PUBLISH
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="PUBLISH"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</c:when>
|
||||
</c:choose>
|
||||
<a id="historyAnchor" href="history.htm?action=list&mapId=${mindmap.id}"
|
||||
rel="moodalbox 600px 400px wizard" title="<spring:message code=" HISTORY_MSG"/>">
|
||||
<div id="history" class="button" title="<spring:message code=" HISTORY_MSG
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="HISTORY"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</fieldset>
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<fieldset>
|
||||
<legend>
|
||||
<spring:message code="COLLABORATION"/>
|
||||
</legend>
|
||||
<div id="tagIt" class="button" title="<spring:message code=" TAG
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="TAG"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="shareIt" class="button" title="<spring:message code=" COLLABORATE
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="SHARE"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="publishIt" class="button" title="<spring:message code=" PUBLISH
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="PUBLISH"/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="history" class="button" title="<spring:message code=" HISTORY_MSG
|
||||
"/>">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
<spring:message code="HISTORY"/>
|
||||
</p>
|
||||
<div id="fontItalic" class="button" title="SYMB_ FONT_ITALIC">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_ITALIC
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="fontColor" class="button comboButton" title="SYMB_ FONT_COLOR">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_COLOR
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div id="share" class="buttonContainer" title="Share Properties">
|
||||
|
||||
<fieldset>
|
||||
<legend>
|
||||
SYMB_COLLABORATION
|
||||
</legend>
|
||||
<div id="tagIt" class="button" title="SYMB_ TAG">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_TAG
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="shareIt" class="button" title="SYMB_ COLLABORATE">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_SHARE
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="publishIt" class="button" title="SYMB_ PUBLISH">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_PUBLISH
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="history" class="button" title="SYMB_ HISTORY_MSG">
|
||||
<div class="toolbarLabel">
|
||||
<p>
|
||||
SYMB_HISTORY
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -431,7 +343,7 @@
|
||||
|
||||
<div id="footerEditor">
|
||||
<div style="position:absolute; top:0px; width:100%">
|
||||
<a href="${pageContext.request.contextPath}/c/home.htm">
|
||||
<a href="home.htm">
|
||||
<div id="logo"></div>
|
||||
</a>
|
||||
|
||||
@@ -448,6 +360,7 @@
|
||||
<div style="float:left; position:relative; top:50%; margin-top:-8px; margin-left:4px;">Shortcuts</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ffoxworkarround" style="display:none;"><input id="ffoxWorkarroundInput" type="text"></div>
|
||||
<script type="text/javascript" src="../js/editor.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user