fix dom traversing for embedder
This commit is contained in:
parent
391a9b0de5
commit
3746d296b0
3 changed files with 6 additions and 3 deletions
3
lib/vimeo_titles.rb
Normal file
3
lib/vimeo_titles.rb
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
class VimeoTitles
|
||||
# To change this template use File | Settings | File Templates.
|
||||
end
|
||||
|
|
@ -43,7 +43,7 @@ var View = {
|
|||
$('textarea')
|
||||
.autoResize({
|
||||
'animate': false,
|
||||
'extraSpace': 0
|
||||
'extraSpace': 20
|
||||
});
|
||||
|
||||
/* Webfinger form ajaxy loading */
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
var service = $this.data("host"),
|
||||
container = document.createElement("div"),
|
||||
$container = $(container).attr("class", "video-container"),
|
||||
$videoContainer = $this.siblings(".video-container");
|
||||
$videoContainer = $this.parent().siblings(".video-container");
|
||||
|
||||
if($videoContainer.length) {
|
||||
$videoContainer.slideUp("fast", function() { $(this).detach(); });
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
);
|
||||
|
||||
$container.hide()
|
||||
.insertBefore($this.siblings(".info"))
|
||||
.insertBefore($this.parent().siblings(".info"))
|
||||
.slideDown('fast');
|
||||
|
||||
$this.click(function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue