summaryrefslogtreecommitdiff
path: root/addons/web_editor/static
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-05-13 14:08:51 +0200
committerChristophe Simonis <chs@odoo.com>2016-05-13 14:08:51 +0200
commit7f2a9e77b6dbe65e3977f8a3b15de1785bc5d7d3 (patch)
tree9a6232b1dcf1f0435b1332c126a8d9cfdc683e64 /addons/web_editor/static
parent89873cbed5fb31547843a7a135145d46986431af (diff)
parentdcab356b38aad5d6c7940c0211a3a940a8be9a65 (diff)
[MERGE] forward port of branch 9.0 up to dcab356
Diffstat (limited to 'addons/web_editor/static')
-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 165f0b0e914..bbab5d22df3 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);