mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
Serialize paramters to json to post.
This commit is contained in:
parent
15d7ae1c1d
commit
2914f5b256
@ -76,12 +76,12 @@ function buildDesigner(options) {
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
url: "/c/restful/logger/editor",
|
url: "/c/restful/logger/editor",
|
||||||
headers: {"Content-Type": "application/json", "Accept": "application/json"},
|
headers: {"Content-Type": "application/json", "Accept": "application/json"},
|
||||||
data: {
|
data: JSON.stringify({
|
||||||
jsErrorMsg: "Message: '" + errorMsg + "', line:'" + lineNo + "', url: :" + url,
|
jsErrorMsg: "Message: '" + errorMsg + "', line:'" + lineNo + "', url: :" + url,
|
||||||
jsStack: window.errorStack,
|
jsStack: window.errorStack,
|
||||||
userAgent: navigator.userAgent,
|
userAgent: navigator.userAgent,
|
||||||
mapId: options.mapId
|
mapId: options.mapId
|
||||||
}
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
// Close loading dialog ...
|
// Close loading dialog ...
|
||||||
|
Loading…
Reference in New Issue
Block a user