Minor fix for some wrong paths ...
This commit is contained in:
@@ -263,8 +263,8 @@ $(function() {
|
||||
$("#newBtn").click(
|
||||
function() {
|
||||
$("#new-dialog-modal").dialogForm({
|
||||
redirect: "/c/maps/{header.resourceId}/edit",
|
||||
url : "../service/maps"
|
||||
redirect: "c/maps/{header.resourceId}/edit",
|
||||
url : "service/maps"
|
||||
});
|
||||
});
|
||||
|
||||
@@ -283,8 +283,8 @@ $(function() {
|
||||
|
||||
// Initialize dialog ...
|
||||
$("#duplicate-dialog-modal").dialogForm({
|
||||
redirect: "/c/maps/{header.resourceId}/edit",
|
||||
url : "../service/maps/" + mapId
|
||||
redirect: "c/maps/{header.resourceId}/edit",
|
||||
url : "service/maps/" + mapId
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -318,7 +318,7 @@ $(function() {
|
||||
rowData.description = reqBodyData.description;
|
||||
dataTable.fnAddData(JSON.parse(JSON.stringify(rowData)));
|
||||
},
|
||||
url : "../service/maps/" + mapId
|
||||
url : "service/maps/" + mapId
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -336,7 +336,7 @@ $(function() {
|
||||
// Remove old entry ...
|
||||
tableUI.dataTableExt.removeSelectedRows();
|
||||
},
|
||||
url : "../service/maps/batch?ids=" + jQuery.makeArray(mapIds).join(',')
|
||||
url : "service/maps/batch?ids=" + jQuery.makeArray(mapIds).join(',')
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -344,32 +344,32 @@ $(function() {
|
||||
$("#printBtn").click(function() {
|
||||
var mapIds = $('#mindmapListTable').dataTableExt.getSelectedMapsIds();
|
||||
if (mapIds.length > 0) {
|
||||
window.open('/c/maps/' + mapIds[0] + '/print');
|
||||
window.open('c/maps/' + mapIds[0] + '/print');
|
||||
}
|
||||
});
|
||||
|
||||
$("#infoBtn").click(function() {
|
||||
showEmbeddedDialog("/c/maps/{mapId}/details", 'info-dialog-modal');
|
||||
showEmbeddedDialog("c/maps/{mapId}/details", 'info-dialog-modal');
|
||||
});
|
||||
|
||||
$("#historyBtn").click(function() {
|
||||
showEmbeddedDialog("/c/maps/{mapId}/history", 'history-dialog-modal');
|
||||
showEmbeddedDialog("c/maps/{mapId}/history", 'history-dialog-modal');
|
||||
});
|
||||
|
||||
$("#publishBtn").click(function() {
|
||||
showEmbeddedDialog("/c/maps/{mapId}/publish", "publish-dialog-modal");
|
||||
showEmbeddedDialog("c/maps/{mapId}/publish", "publish-dialog-modal");
|
||||
});
|
||||
|
||||
$("#exportBtn").click(function() {
|
||||
showEmbeddedDialog("/c/maps/{mapId}/export", 'export-dialog-modal');
|
||||
showEmbeddedDialog("c/maps/{mapId}/export", 'export-dialog-modal');
|
||||
});
|
||||
|
||||
$("#importBtn").click(function() {
|
||||
showEmbeddedDialog("/c/maps/import", 'import-dialog-modal', true);
|
||||
showEmbeddedDialog("c/maps/import", 'import-dialog-modal', true);
|
||||
});
|
||||
|
||||
$("#shareBtn").click(function() {
|
||||
showEmbeddedDialog("/c/maps/{mapId}/share", 'share-dialog-modal', true);
|
||||
showEmbeddedDialog("c/maps/{mapId}/share", 'share-dialog-modal', true);
|
||||
});
|
||||
|
||||
var showEmbeddedDialog = function(urlTemplate, dialogElemId, ignore) {
|
||||
@@ -397,7 +397,7 @@ $(function() {
|
||||
$('#foldersContainer .active i').addClass('icon-white');
|
||||
|
||||
// Reload the table data ...
|
||||
dataTable.fnReloadAjax("../service/maps/?q=" + $(this).attr('data-filter'), callbackOnTableInit, true);
|
||||
dataTable.fnReloadAjax("service/maps/?q=" + $(this).attr('data-filter'), callbackOnTableInit, true);
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
|
@@ -4,97 +4,97 @@
|
||||
<div id="persist" class="buttonContainer">
|
||||
<c:if test="${!readOnlyMode}">
|
||||
<div id="save" class="buttonOn">
|
||||
<img src="../images/save.png"/>
|
||||
<img src="images/save.png"/>
|
||||
</div>
|
||||
<div id="discard" class="buttonOn">
|
||||
<img src="../images/discard.png"/>
|
||||
<img src="images/discard.png"/>
|
||||
</div>
|
||||
</c:if>
|
||||
<div id="print" class="buttonOn">
|
||||
<img src="../images/print.png"/>
|
||||
<img src="images/print.png"/>
|
||||
</div>
|
||||
</div>
|
||||
<c:if test="${!readOnlyMode}">
|
||||
<div id="edit" class="buttonContainer">
|
||||
<div id="undoEdition" class="buttonOn">
|
||||
<img src="../images/undo.png"/>
|
||||
<img src="images/undo.png"/>
|
||||
</div>
|
||||
<div id="redoEdition" class="buttonOn">
|
||||
<img src="../images/redo.png"/>
|
||||
<img src="images/redo.png"/>
|
||||
</div>
|
||||
</div>
|
||||
</c:if>
|
||||
<div id="zoom" class="buttonContainer">
|
||||
<div id="zoomIn" class="buttonOn">
|
||||
<img src="../images/zoom-in.png"/>
|
||||
<img src="images/zoom-in.png"/>
|
||||
</div>
|
||||
<div id="zoomOut" class="buttonOn">
|
||||
<img src="../images/zoom-out.png"/>
|
||||
<img src="images/zoom-out.png"/>
|
||||
</div>
|
||||
</div>
|
||||
<c:if test="${!readOnlyMode}">
|
||||
<div id="node" class="buttonContainer">
|
||||
<div id="topicShape" class="buttonExtOn">
|
||||
<img src="../images/topic-shape.png"/>
|
||||
<img src="images/topic-shape.png"/>
|
||||
</div>
|
||||
<div id="addTopic" class="buttonOn">
|
||||
<img src="../images/topic-add.png"/>
|
||||
<img src="images/topic-add.png"/>
|
||||
</div>
|
||||
<div id="deleteTopic" class="buttonOn">
|
||||
<img src="../images/topic-delete.png"/>
|
||||
<img src="images/topic-delete.png"/>
|
||||
</div>
|
||||
<div id="topicBorder" class="buttonExtOn">
|
||||
<img src="../images/topic-border.png"/>
|
||||
<img src="images/topic-border.png"/>
|
||||
</div>
|
||||
<div id="topicColor" class="buttonExtOn">
|
||||
<img src="../images/topic-color.png"/>
|
||||
<img src="images/topic-color.png"/>
|
||||
</div>
|
||||
<div id="topicIcon" class="buttonExtOn">
|
||||
<img src="../images/topic-icon.png"/>
|
||||
<img src="images/topic-icon.png"/>
|
||||
</div>
|
||||
<div id="topicNote" class="buttonOn">
|
||||
<img src="../images/topic-note.png"/>
|
||||
<img src="images/topic-note.png"/>
|
||||
</div>
|
||||
<div id="topicLink" class="buttonOn">
|
||||
<img src="../images/topic-link.png"/>
|
||||
<img src="images/topic-link.png"/>
|
||||
</div>
|
||||
<div id="topicRelation" class="buttonOn">
|
||||
<img src="../images/topic-relation.png"/>
|
||||
<img src="images/topic-relation.png"/>
|
||||
</div>
|
||||
</div>
|
||||
<div id="font" class="buttonContainer">
|
||||
<div id="fontFamily" class="buttonOn">
|
||||
<img src="../images/font-type.png"/>
|
||||
<img src="images/font-type.png"/>
|
||||
</div>
|
||||
<div id="fontSize" class="buttonExtOn">
|
||||
<img src="../images/font-size.png"/>
|
||||
<img src="images/font-size.png"/>
|
||||
</div>
|
||||
<div id="fontBold" class="buttonOn">
|
||||
<img src="../images/font-bold.png"/>
|
||||
<img src="images/font-bold.png"/>
|
||||
</div>
|
||||
<div id="fontItalic" class="buttonOn">
|
||||
<img src="../images/font-italic.png"/>
|
||||
<img src="images/font-italic.png"/>
|
||||
</div>
|
||||
<div id="fontColor" class="buttonExtOn">
|
||||
<img src="../images/font-color.png"/>
|
||||
<img src="images/font-color.png"/>
|
||||
</div>
|
||||
</div>
|
||||
</c:if>
|
||||
<div id="collaboration" class="buttonContainer">
|
||||
<c:if test="${mindmap.owner && !readOnlyMode}">
|
||||
<div id="shareIt" class="buttonOn">
|
||||
<img src="../images/share.png"/>
|
||||
<img src="images/share.png"/>
|
||||
</div>
|
||||
<div id="publishIt" class="buttonOn">
|
||||
<img src="../images/public.png"/>
|
||||
<img src="images/public.png"/>
|
||||
</div>
|
||||
</c:if>
|
||||
<div id="export" class="buttonOn">
|
||||
<img src="../images/export.png"/>
|
||||
<img src="images/export.png"/>
|
||||
</div>
|
||||
<c:if test="${!readOnlyMode}">
|
||||
<div id="history" class="buttonOn">
|
||||
<img src="../images/history.png"/>
|
||||
<img src="images/history.png"/>
|
||||
</div>
|
||||
</c:if>
|
||||
</div>
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<base href="${baseURL}">
|
||||
<base href="${baseURL}/">
|
||||
<title><spring:message code="SITE.TITLE"/></title>
|
||||
<!--[if lt IE 9]>
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||
@@ -33,7 +33,7 @@
|
||||
$(function () {
|
||||
$('#mindmapListTable').dataTable({
|
||||
bProcessing:true,
|
||||
sAjaxSource:"../service/maps/",
|
||||
sAjaxSource:"service/maps/",
|
||||
sAjaxDataProp:'mindmapsInfo',
|
||||
fnInitComplete:function () {
|
||||
$('#mindmapListTable tbody').change(updateStatusToolbar);
|
||||
|
Reference in New Issue
Block a user