fix dom traversing for embedder

This commit is contained in:
Dan Hansen 2011-01-31 15:15:30 -06:00
parent 391a9b0de5
commit 3746d296b0
3 changed files with 6 additions and 3 deletions

3
lib/vimeo_titles.rb Normal file
View file

@ -0,0 +1,3 @@
class VimeoTitles
# To change this template use File | Settings | File Templates.
end

View file

@ -43,7 +43,7 @@ var View = {
$('textarea')
.autoResize({
'animate': false,
'extraSpace': 0
'extraSpace': 20
});
/* Webfinger form ajaxy loading */

View file

@ -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() {