head.html ---Bug Fixed, problem was in Embed Code sharing.
This commit is contained in:
parent
14e11947ea
commit
65a1af5d9a
1 changed files with 5 additions and 16 deletions
|
@ -4,9 +4,10 @@ var imageurl = '{$imageurl}';
|
|||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var embedPlayerWidth = '{$Cbucket->configs.embed_player_width}';
|
||||
var embedPlayerHeight = '{$Cbucket->configs.embed_player_height}';
|
||||
var autoPlayEmbed = '{$Cbucket->configs.autoplay_embed}';
|
||||
var embedPlayerWidth = '{$Cbucket->configs.embed_player_width}';
|
||||
var embedPlayerHeight = '{$Cbucket->configs.embed_player_height}';
|
||||
var autoPlayEmbed = '{$Cbucket->configs.autoplay_embed}';
|
||||
var embed_type = '{$Cbucket->configs.embed_type}';
|
||||
|
||||
|
||||
{literal}
|
||||
|
@ -18,7 +19,7 @@ function updateEmbed(width,height,autoplay)
|
|||
$('#embed_code').val( $('#embed_code').val().replace(/height=([0-9]+)/g,'height='+height+'') );
|
||||
}
|
||||
|
||||
/*function switchEmbedCode(type)
|
||||
function switchEmbedCode(type)
|
||||
{
|
||||
if(embed_type==type)
|
||||
return false;
|
||||
|
@ -31,18 +32,6 @@ function updateEmbed(width,height,autoplay)
|
|||
$('#embed_code').val(alt_embed);
|
||||
|
||||
}
|
||||
}*/
|
||||
|
||||
function switchEmbedCode(type)
|
||||
{
|
||||
|
||||
embed_type = type;
|
||||
|
||||
var alt_embed =$('#alternate_embed_code').val();
|
||||
$('#alternate_embed_code').val($('#embed_code').val());
|
||||
$('#embed_code').val(alt_embed);
|
||||
|
||||
|
||||
}
|
||||
|
||||
{/literal}
|
||||
|
|
Loading…
Add table
Reference in a new issue