mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
- Fix duplicate map bug.
This commit is contained in:
parent
c4ad5810da
commit
ec41dafcf5
@ -413,7 +413,6 @@ public class MindmapController extends BaseController {
|
|||||||
final MindMap clonedMap = mindMap.shallowClone();
|
final MindMap clonedMap = mindMap.shallowClone();
|
||||||
clonedMap.setTitle(restMindmap.getTitle());
|
clonedMap.setTitle(restMindmap.getTitle());
|
||||||
clonedMap.setDescription(restMindmap.getDescription());
|
clonedMap.setDescription(restMindmap.getDescription());
|
||||||
clonedMap.setCreator(user);
|
|
||||||
|
|
||||||
// Add new mindmap ...
|
// Add new mindmap ...
|
||||||
mindmapService.addMindmap(clonedMap, user);
|
mindmapService.addMindmap(clonedMap, user);
|
||||||
|
@ -65,7 +65,8 @@ FILE=File
|
|||||||
FILE_URL=File URL
|
FILE_URL=File URL
|
||||||
STATUS=Status
|
STATUS=Status
|
||||||
LAST_EDITOR=Last Edition
|
LAST_EDITOR=Last Edition
|
||||||
|
LAST_UPDATE=Last Update
|
||||||
|
LAST_UPDATE_BY=Last Update By
|
||||||
DELETE_SELECTED_CONFIRMATION=All selected Maps will be deleted. Do you want to continue?
|
DELETE_SELECTED_CONFIRMATION=All selected Maps will be deleted. Do you want to continue?
|
||||||
DELETE_CONFIRMATION=Are you sure that you want to delete this map?
|
DELETE_CONFIRMATION=Are you sure that you want to delete this map?
|
||||||
DELETE_SELECTED=Delete selected
|
DELETE_SELECTED=Delete selected
|
||||||
|
@ -425,35 +425,34 @@ $(function() {
|
|||||||
$("#printBtn").click(function() {
|
$("#printBtn").click(function() {
|
||||||
var mapIds = $('#mindmapListTable').dataTableExt.getSelectedMapsIds();
|
var mapIds = $('#mindmapListTable').dataTableExt.getSelectedMapsIds();
|
||||||
if (mapIds.length > 0) {
|
if (mapIds.length > 0) {
|
||||||
window.open('c/maps/' + mapIds[0] + '/print');
|
window.open('/c/maps/' + mapIds[0] + '/print');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#infoBtn").click(function() {
|
$("#infoBtn").click(function() {
|
||||||
showEmbeddedDialog("c/maps/{mapId}/details", 'info-dialog-modal');
|
showEmbeddedDialog("/c/maps/{mapId}/details", 'info-dialog-modal');
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#historyBtn").click(function() {
|
$("#historyBtn").click(function() {
|
||||||
showEmbeddedDialog("c/maps/{mapId}/history", 'history-dialog-modal');
|
showEmbeddedDialog("/c/maps/{mapId}/history", 'history-dialog-modal');
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#publishBtn").click(function() {
|
$("#publishBtn").click(function() {
|
||||||
showEmbeddedDialog("c/maps/{mapId}/publish", "publish-dialog-modal");
|
showEmbeddedDialog("/c/maps/{mapId}/publish", "publish-dialog-modal");
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#exportBtn").click(function() {
|
$("#exportBtn").click(function() {
|
||||||
showEmbeddedDialog("c/maps/{mapId}/export", 'export-dialog-modal');
|
showEmbeddedDialog("/c/maps/{mapId}/export", 'export-dialog-modal');
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#importBtn").click(function() {
|
$("#importBtn").click(function() {
|
||||||
showEmbeddedDialog("c/maps/import", 'import-dialog-modal', true);
|
showEmbeddedDialog("/c/maps/import", 'import-dialog-modal', true);
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#shareBtn").click(function() {
|
$("#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) {
|
var showEmbeddedDialog = function(urlTemplate, dialogElemId, ignore) {
|
||||||
var mapIds = $('#mindmapListTable').dataTableExt.getSelectedMapsIds();
|
var mapIds = $('#mindmapListTable').dataTableExt.getSelectedMapsIds();
|
||||||
if (mapIds.length > 0 || ignore) {
|
if (mapIds.length > 0 || ignore) {
|
||||||
|
Loading…
Reference in New Issue
Block a user