Skip to content

Commit

Permalink
Merge pull request #687 from GabbasovDinar/11.0-web_preview-fix
Browse files Browse the repository at this point in the history
🚑 error openning popup
  • Loading branch information
Ivan Yelizariev committed Nov 26, 2018
2 parents 3d6c024 + 96ff29d commit 168f657
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web_preview/__manifest__.py
Expand Up @@ -3,7 +3,7 @@
"summary": """Open attached images in popup""",
"category": "Web",
"images": ['images/screenshot-1.png'],
"version": "11.0.1.0.0",
"version": "11.0.1.0.1",
"application": False,

"author": "IT-Projects LLC, Dinar Gabbasov",
Expand Down
7 changes: 6 additions & 1 deletion web_preview/doc/changelog.rst
@@ -1,4 +1,9 @@
`1.0.1`
-------

**Fix:** Incorrect opening of the popup when using multiple binary fields in the model

`1.0.0`
-------

- Init version
**Init version**
4 changes: 2 additions & 2 deletions web_preview/static/src/xml/media_tree_view_widget.xml
Expand Up @@ -70,15 +70,15 @@
<!--IMAGE-->
<t t-if="!widget.media_type or (widget.media_type and widget.media_type=='image')">
<img class="img img-responsive"
t-attf-onclick="$('#ImageModal{{ widget.media_id }}').arcticmodal()"
t-attf-onclick="$('#ImageModal_{{ widget.media_id }}_{{ widget.name }}').arcticmodal()"
t-att-src='url'
t-att-border="widget.readonly ? 0 : 1"
t-att-name="widget.name"
t-att-width="widget.nodeOptions.size ? widget.nodeOptions.size[0] : widget.attrs.img_width || widget.attrs.width"
t-att-height="widget.nodeOptions.size ? widget.nodeOptions.size[1] : widget.attrs.img_height || widget.attrs.height"/>

<div class="g-hidden">
<div class="box-modal" t-attf-id="ImageModal{{ widget.media_id }}">
<div class="box-modal" t-attf-id="ImageModal_{{ widget.media_id }}_{{ widget.name }}">
<div class="box-modal_close arcticmodal-close">X</div>
<img class="o_image img img-responsive"
t-att-src='url'
Expand Down

0 comments on commit 168f657

Please sign in to comment.