Commit f665b285 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use urlsafe_b64encode as the dom_id, otherwise we need to escape many...

use urlsafe_b64encode as the dom_id, otherwise we need to escape many characters including periods etc.
parent 3eb9c812
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
format python: here.getObject().portal_preferences.getPreference(\'preferred_image_format\', \'png\');\n format python: here.getObject().portal_preferences.getPreference(\'preferred_image_format\', \'png\');\n
description python: here.getDescription();\n description python: here.getDescription();\n
box_relative_url python: request.get(\'box_relative_url\', \'\');\n box_relative_url python: request.get(\'box_relative_url\', \'\');\n
dom_id python: (\'%s-%s\' %(box_relative_url, here.getRelativeUrl())).replace(\'/\',\'_\')">\n dom_id python: modules[\'base64\'].urlsafe_b64encode(\'%s-%s\' %(box_relative_url, here.getUid()))[:-1]">\n
<div class="document-gadget-quick-preview">\n <div class="document-gadget-quick-preview">\n
<div class="teaser"\n <div class="teaser"\n
tal:attributes="onclick string:$(\'#${dom_id}\').toggle();">\n tal:attributes="onclick string:$(\'#${dom_id}\').toggle();">\n
......
1062 1063
\ No newline at end of file \ 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