From fe62f1810563e09aec79313c94d4843e718150d5 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Mon, 13 May 2013 14:43:41 +0200
Subject: [PATCH] fix possible broken javascript string in the unsaved change
 warning.

---
 .../portal_skins/erp5_xhtml_style/view_main.xml               | 4 ++--
 product/ERP5/bootstrap/erp5_xhtml_style/bt/revision           | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml
index 8ed3d47eee..1f59cba738 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml
@@ -58,8 +58,8 @@
         <tal:block metal:fill-slot="main">\n
           <script type="text/javascript"\n
             tal:condition="portal/portal_preferences/getPreferredHtmlStyleUnsavedFormWarning"\n
-            tal:define="message python:context.Base_translateString(\'You have unsaved changes\').replace(\'\\\'\', \'\\\\\\\'\')"\n
-            tal:content="string:installUnsavedChangesWarning(\'$message\')">\n
+            tal:define="message python:context.Base_translateString(\'You have unsaved changes\').replace(\'\\\\\', \'\\\\\\\\\').replace(\'\\\'\', \'\\\\\\\'\')"\n
+            tal:content="structure string:installUnsavedChangesWarning(\'$message\');">\n
           </script>\n
           <div class="document"\n
                tal:define="actions actions/object_view | python: []">\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index e50f8eba35..8b37c8cfe6 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-1096
\ No newline at end of file
+1097
\ No newline at end of file
-- 
2.30.9