Commit fe62f181 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix possible broken javascript string in the unsaved change warning.

parent 217a9d73
......@@ -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
......
1096
\ No newline at end of file
1097
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment