summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/widgets.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-05-13 15:58:06 +0200
committerChristophe Simonis <chs@odoo.com>2016-05-13 15:58:06 +0200
commitc4bba868f0493134b69cb22c3ee0d896d4b38048 (patch)
tree547a13e863feb7a63fafd3e8e0a92918f435697b /addons/web_editor/static/src/js/widgets.js
parent43f40ec4035eee1c76ceb37dd359397869c473b5 (diff)
parent087729f31b626b32c98bd3048bf7b63c1de73d38 (diff)
[MERGE] forward port of branch saas-9 up to 087729f
Diffstat (limited to 'addons/web_editor/static/src/js/widgets.js')
-rw-r--r--addons/web_editor/static/src/js/widgets.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/widgets.js b/addons/web_editor/static/src/js/widgets.js
index 8db4c66180c..a4ef757dbd5 100644
--- a/addons/web_editor/static/src/js/widgets.js
+++ b/addons/web_editor/static/src/js/widgets.js
@@ -39,6 +39,10 @@ var Dialog = Widget.extend({
close: function () {
this.$el.modal('hide');
},
+ destroy: function () {
+ this._super();
+ $("body:has('> .modal:visible')").addClass('modal-open');
+ },
stop_escape: function (event) {
if($(".modal.in").length>0 && event.which == 27) {
event.stopPropagation();
@@ -832,6 +836,10 @@ function createVideoNode(url) {
.attr('src', '//player.youku.com/embed/' + youkuMatch[1]);
} else {
// this is not a known video link. Now what, Cat? Now what?
+ $video = $('<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>')
+ .attr('width', '640')
+ .attr('height', '360')
+ .attr('src', url);
}
$video.attr('frameborder', 0);