From 00829bfcc4025499272c7a9cec0b4b3449ed8e19 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Fri, 31 Aug 2012 22:53:56 -0300 Subject: [PATCH] Remove svgXML on get action. --- wise-webapp/src/main/webapp/jsp/iframeWrapper.jsp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wise-webapp/src/main/webapp/jsp/iframeWrapper.jsp b/wise-webapp/src/main/webapp/jsp/iframeWrapper.jsp index 82c899ea..4b3d637b 100644 --- a/wise-webapp/src/main/webapp/jsp/iframeWrapper.jsp +++ b/wise-webapp/src/main/webapp/jsp/iframeWrapper.jsp @@ -23,7 +23,8 @@ iframeForm.setAttribute('method', context.method); iframeForm.setAttribute('action', context.action); - $('svgXml').setAttribute('value', window.document.getElementById('workspaceContainer').innerHTML); + var svgXml = context.method == "POST" ? window.document.getElementById('workspaceContainer').innerHTML : ""; + $('svgXml').setAttribute('value', svgXml); $('download').setAttribute('value', context.formatType); iframeForm.submit(); }