diff --git a/WebKit/scripts/controller/Profile.js b/WebKit/scripts/controller/Profile.js index c71b814..93e1164 100644 --- a/WebKit/scripts/controller/Profile.js +++ b/WebKit/scripts/controller/Profile.js @@ -37,6 +37,7 @@ function(HostApp, Core, Paths, URI) { this.profile_template.entity.innerHTML = this.entity; this.profile_template.entity.href = this.entity; + this.getProfile(); this.getFollowing(); } @@ -235,7 +236,7 @@ function(HostApp, Core, Paths, URI) { var following = JSON.parse(resp.responseText); _this.following_id = following.id _this.setFollowingButton(true); - _this.showProfile(following.profile); + //_this.showProfile(following.profile); } else { _this.setFollowingButton(false); _this.following_id = null; @@ -247,6 +248,7 @@ function(HostApp, Core, Paths, URI) { Profile.prototype.showProfile = function(profile) { var basic = profile["https://tent.io/types/info/basic/v0.1.0"]; + debug(basic) if (profile && basic) { diff --git a/WebKit/scripts/helper/Core.js b/WebKit/scripts/helper/Core.js index 59b5af7..de76e48 100644 --- a/WebKit/scripts/helper/Core.js +++ b/WebKit/scripts/helper/Core.js @@ -941,9 +941,10 @@ function(jQuery, Paths, URI, HostApp, Cache) { iframe.contents().find('*').each(function () { $(this).removeAttr("tabindex"); }); - }) + }); + + // Appending the src iframe.attr("src", 'http://www.youtube.com/embed/' + id + '?rel=0&showsearch=0&version=3&modestbranding=1'); - } Core.prototype.addVimeo = function(id, images) {