summaryrefslogtreecommitdiff
path: root/addons/website_slides/static/src
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-03-07 18:46:38 +0100
committerChristophe Simonis <chs@odoo.com>2018-03-07 18:46:38 +0100
commit4aa5ec3fa511e42a08318fe66dde3bd57f0d1f09 (patch)
treed3de91d0113164ce313d7eff44c2f25c7e95f743 /addons/website_slides/static/src
parent3c821d4035d0c85f691653c47986d8f4c3dfc51d (diff)
parentd67b410dfcd67d2540628d4f6be0daf8861c4a46 (diff)
[MERGE] forward port branch 11.0 up to d67b410dfcd
Diffstat (limited to 'addons/website_slides/static/src')
-rw-r--r--addons/website_slides/static/src/js/slides.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/addons/website_slides/static/src/js/slides.js b/addons/website_slides/static/src/js/slides.js
index 7d945e9eb28..b331ebf366c 100644
--- a/addons/website_slides/static/src/js/slides.js
+++ b/addons/website_slides/static/src/js/slides.js
@@ -109,11 +109,12 @@ var page_widgets = {};
},
});
- $('iframe').ready(function() {
+ $('iframe.o_wslides_iframe_viewer').ready(function() {
// TODO : make it work. For now, once the iframe is loaded, the value of #page_count is
// still now set (the pdf is still loading)
- var max_page = $('iframe').contents().find('#page_count').val();
- new SlideSocialEmbed($(this), max_page).setElement($('.oe_slide_js_embed_code_widget'));
+ var $iframe = $(this);
+ var max_page = $iframe.contents().find('#page_count').val();
+ new SlideSocialEmbed($iframe, max_page).setElement($('.oe_slide_js_embed_code_widget'));
});