Browse Source

Add allowfullscreen

pull/36/head
Artur Arseniev 10 years ago
parent
commit
435c010d0f
  1. 5
      src/canvas/view/FrameView.js
  2. 1
      src/dom_components/model/ComponentVideo.js
  3. 2
      src/dom_components/view/ComponentVideoView.js

5
src/canvas/view/FrameView.js

@ -8,7 +8,8 @@ function(Backbone) {
tagName: 'iframe',
attributes: {
src: 'about:blank'
src: 'about:blank',
allowfullscreen: 'allowfullscreen'
},
initialize: function(o) {
@ -51,4 +52,4 @@ function(Backbone) {
},
});
});
});

1
src/dom_components/model/ComponentVideo.js

@ -20,6 +20,7 @@ define(['./ComponentImage'],
controls: 1,
color: '',
sources: [],
attributes:{allowfullscreen:'allowfullscreen'}
}),
initialize: function(o, opt) {

2
src/dom_components/view/ComponentVideoView.js

@ -87,6 +87,7 @@ define(['backbone', './ComponentImageView'],
var el = document.createElement('iframe');
el.src = this.model.getYoutubeSrc();
el.frameBorder = 0;
el.setAttribute('allowfullscreen', true);
this.initVideoEl(el);
return el;
},
@ -95,6 +96,7 @@ define(['backbone', './ComponentImageView'],
var el = document.createElement('iframe');
el.src = this.model.getVimeoSrc();
el.frameBorder = 0;
el.setAttribute('allowfullscreen', true);
this.initVideoEl(el);
return el;
},

Loading…
Cancel
Save