Commit 7119bf03 authored by Ivan Tyagov's avatar Ivan Tyagov

Use preferences to determine preferred thumbnail format.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36950 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c5ca0e93
...@@ -226,10 +226,12 @@ ...@@ -226,10 +226,12 @@
<script type="text/javascript"\n <script type="text/javascript"\n
tal:define="size python:len(line_list);\n tal:define="size python:len(line_list);\n
start_frame python:here.renderer.getLineStart();\n start_frame python:here.renderer.getLineStart();\n
end_frame python:start_frame+size;"\n end_frame python:start_frame+size;\n
format python: real_context.portal_preferences.getPreference(\'preferred_image_format\', \'png\')"\n
tal:content="string:var START_FRAME=${start_frame};\n tal:content="string:var START_FRAME=${start_frame};\n
var END_FRAME=${end_frame};\n var END_FRAME=${end_frame};\n
var SELECTION_NAME=\'${selection_name}\';\n var SELECTION_NAME=\'${selection_name}\';\n
var FORMAT=\'${format}\';\n
">\n ">\n
</script>\n </script>\n
\n \n
...@@ -249,7 +251,7 @@ function makeThumnailNode(parent_node, frame, src){\n ...@@ -249,7 +251,7 @@ function makeThumnailNode(parent_node, frame, src){\n
function makeThumbnailNodes(start, end){\n function makeThumbnailNodes(start, end){\n
forEach(MochiKit.Iter.range(start,end), \n forEach(MochiKit.Iter.range(start,end), \n
function(frame_number){\n function(frame_number){\n
makeThumnailNode(parent_node, frame_number, "index_html?frame="+frame_number+"&display=thumbnail&format=png");\n makeThumnailNode(parent_node, frame_number, "index_html?frame="+frame_number+"&display=thumbnail&format="+FORMAT);\n
});\n });\n
}\n }\n
\n \n
......
1158 1159
\ 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