mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
Fix some usrs...
This commit is contained in:
parent
728ef7eb6b
commit
b245b97db3
@ -90,8 +90,11 @@ jQuery.fn.dialogForm = function(options) {
|
|||||||
contentType:"application/json; charset=utf-8",
|
contentType:"application/json; charset=utf-8",
|
||||||
success : function(data, textStatus, jqXHR) {
|
success : function(data, textStatus, jqXHR) {
|
||||||
if (options.redirect) {
|
if (options.redirect) {
|
||||||
var mapId = jqXHR.getResponseHeader("ResourceId");
|
var resourceId = jqXHR.getResponseHeader("ResourceId");
|
||||||
window.location = options.redirect + "&mapId=" + mapId;
|
var redirectUrl = options.redirect;
|
||||||
|
redirectUrl = redirectUrl.replace("{header.resourceId}", resourceId);
|
||||||
|
window.location = redirectUrl;
|
||||||
|
|
||||||
} else if (options.postUpdate) {
|
} else if (options.postUpdate) {
|
||||||
options.postUpdate(formData);
|
options.postUpdate(formData);
|
||||||
}
|
}
|
||||||
|
@ -169,7 +169,7 @@
|
|||||||
modal: true,
|
modal: true,
|
||||||
acceptButtonLabel : "Create",
|
acceptButtonLabel : "Create",
|
||||||
cancelButtonLabel : "Cancel",
|
cancelButtonLabel : "Cancel",
|
||||||
redirect: "c/editor.htm?action=open",
|
redirect: "c/map/{header.resourceId}/edit.htm",
|
||||||
url : "../service/maps"
|
url : "../service/maps"
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -195,7 +195,7 @@
|
|||||||
modal: true,
|
modal: true,
|
||||||
acceptButtonLabel : "Duplicated",
|
acceptButtonLabel : "Duplicated",
|
||||||
cancelButtonLabel : "Cancel",
|
cancelButtonLabel : "Cancel",
|
||||||
redirect: "c/editor.htm?action=open",
|
redirect: "c/map/{header.resourceId}/edit.htm",
|
||||||
url : "../service/maps/" + mapId
|
url : "../service/maps/" + mapId
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -266,7 +266,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
$("#buttons .printMap").button({
|
$("#buttons .printMap").button({
|
||||||
icons: { primary: "ui-icon-trash" }
|
icons: { primary: "ui-icon-print" }
|
||||||
}).click(function() {
|
}).click(function() {
|
||||||
var mapIds = $('#mindmapListTable').dataTableExt.getSelectedMapsIds();
|
var mapIds = $('#mindmapListTable').dataTableExt.getSelectedMapsIds();
|
||||||
if (mapIds.length > 0) {
|
if (mapIds.length > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user