From 2914f5b256ca962eb62f846aef17a7f1616611d9 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Fri, 10 Apr 2015 00:28:45 -0300 Subject: [PATCH] Serialize paramters to json to post. --- wise-editor/src/main/webapp/js/editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wise-editor/src/main/webapp/js/editor.js b/wise-editor/src/main/webapp/js/editor.js index 2d94dbf7..96bad655 100644 --- a/wise-editor/src/main/webapp/js/editor.js +++ b/wise-editor/src/main/webapp/js/editor.js @@ -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 ...