Serialize paramters to json to post.

This commit is contained in:
Paulo Gustavo Veiga 2015-04-10 00:28:45 -03:00
parent 15d7ae1c1d
commit 2914f5b256

View File

@ -76,12 +76,12 @@ function buildDesigner(options) {
method: 'post',
url: "/c/restful/logger/editor",
headers: {"Content-Type": "application/json", "Accept": "application/json"},
data: {
data: JSON.stringify({
jsErrorMsg: "Message: '" + errorMsg + "', line:'" + lineNo + "', url: :" + url,
jsStack: window.errorStack,
userAgent: navigator.userAgent,
mapId: options.mapId
}
})
});
// Close loading dialog ...