Skip to content

Commit

Permalink
Quick fix for #30 (allowfullscreen)
Browse files Browse the repository at this point in the history
@nleush We'd need to figure out a more robust solution sime time soon.
  • Loading branch information
iparamonau committed Oct 17, 2013
1 parent 704df73 commit 74ed132
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion modules/api/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ var renders = {
var $iframe = $('<iframe>')
.addClass("iframely-widget iframely-iframe")
.attr('src', data.href)
.attr('frameborder', '0');
.attr('frameborder', '0')
.attr('allowfullscreen', true)
.attr('webkitallowfullscreen', true)
.attr('mozallowfullscreen', true);

if (options && options.disableSizeWrapper) {
return $iframe;
Expand Down
6 changes: 5 additions & 1 deletion static/js/iframely.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,11 @@
var $iframe = $('<iframe>')
.addClass("iframely-widget iframely-iframe")
.attr('src', data.href)
.attr('frameborder', '0');
.attr('frameborder', '0')
.attr('allowfullscreen', true)
.attr('webkitallowfullscreen', true)
.attr('mozallowfullscreen', true);


if (options && options.disableSizeWrapper) {
return $iframe;
Expand Down

0 comments on commit 74ed132

Please sign in to comment.