Commit d46c8b33 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

make extra field works for AudioField and VideoField.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43324 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4344730f
No related merge requests found
...@@ -55,6 +55,7 @@ class AudioWidget(Widget.TextWidget): ...@@ -55,6 +55,7 @@ class AudioWidget(Widget.TextWidget):
return '' return ''
return Widget.render_element("audio", return Widget.render_element("audio",
src=value, src=value,
extra=field.get_value('extra'),
controls=field.get_value('audio_controls'), controls=field.get_value('audio_controls'),
loop=field.get_value('audio_loop'), loop=field.get_value('audio_loop'),
preload=field.get_value('audio_preload'), preload=field.get_value('audio_preload'),
......
...@@ -70,6 +70,7 @@ class VideoWidget(Widget.TextWidget): ...@@ -70,6 +70,7 @@ class VideoWidget(Widget.TextWidget):
return '' return ''
return Widget.render_element("video", return Widget.render_element("video",
src=value, src=value,
extra=field.get_value('extra'),
controls=field.get_value('video_controls'), controls=field.get_value('video_controls'),
loop=field.get_value('video_loop'), loop=field.get_value('video_loop'),
width=field.get_value('video_width'), width=field.get_value('video_width'),
......
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