wtf weird chars in the JS
This commit is contained in:
parent
68c0682ed0
commit
8f67f90307
1 changed files with 11 additions and 11 deletions
|
|
@ -48,7 +48,7 @@ $(document).ready(function(){
|
|||
evt.preventDefault();
|
||||
|
||||
var $this = $(this),
|
||||
container = document.createElement('div'),
|
||||
container = document.createElement('div'),
|
||||
$container = $(container).attr("class", "video-container");
|
||||
|
||||
var $videoContainer = $this.siblings("div.video-container");
|
||||
|
|
@ -62,27 +62,27 @@ $(document).ready(function(){
|
|||
if($("div.video-container").length > 0) {
|
||||
$("div.video-container").slideUp("fast", function() {
|
||||
$(this).detach();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
if($this.data("host") === 'youtube.com') {
|
||||
|
||||
if($this.data("host") === 'youtube.com') {
|
||||
$container.html(
|
||||
'<a href="//www.youtube.com/watch?v=' + $this.data("video-id") + '" target="_blank">Watch this video on Youtube</a><br />' +
|
||||
'<iframe class="youtube-player" type="text/html" src="http://www.youtube.com/embed/' + $this.data("video-id")+ '"></iframe>'
|
||||
);
|
||||
} else {
|
||||
);
|
||||
} else {
|
||||
$container.html('Invalid videotype <i>'+$this.data("host")+'</i> (ID: '+$this.data("video-id")+')');
|
||||
}
|
||||
|
||||
$container.hide();
|
||||
this.parentNode.insertBefore(container, this.nextSibling);
|
||||
|
||||
$container.hide();
|
||||
this.parentNode.insertBefore(container, this.nextSibling);
|
||||
$container.slideDown('fast');
|
||||
|
||||
|
||||
$this.click(function() {
|
||||
$container.slideToggle('fast', function () {
|
||||
$(this).detach();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
$(".new_status_message").bind('ajax:success', function(data, json, xhr){
|
||||
|
|
|
|||
Loading…
Reference in a new issue