getting the profile from remote server instead
This commit is contained in:
parent
83aa055714
commit
2ce693e193
2 changed files with 6 additions and 3 deletions
|
@ -37,6 +37,7 @@ function(HostApp, Core, Paths, URI) {
|
||||||
this.profile_template.entity.innerHTML = this.entity;
|
this.profile_template.entity.innerHTML = this.entity;
|
||||||
this.profile_template.entity.href = this.entity;
|
this.profile_template.entity.href = this.entity;
|
||||||
|
|
||||||
|
this.getProfile();
|
||||||
this.getFollowing();
|
this.getFollowing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -235,7 +236,7 @@ function(HostApp, Core, Paths, URI) {
|
||||||
var following = JSON.parse(resp.responseText);
|
var following = JSON.parse(resp.responseText);
|
||||||
_this.following_id = following.id
|
_this.following_id = following.id
|
||||||
_this.setFollowingButton(true);
|
_this.setFollowingButton(true);
|
||||||
_this.showProfile(following.profile);
|
//_this.showProfile(following.profile);
|
||||||
} else {
|
} else {
|
||||||
_this.setFollowingButton(false);
|
_this.setFollowingButton(false);
|
||||||
_this.following_id = null;
|
_this.following_id = null;
|
||||||
|
@ -247,6 +248,7 @@ function(HostApp, Core, Paths, URI) {
|
||||||
Profile.prototype.showProfile = function(profile) {
|
Profile.prototype.showProfile = function(profile) {
|
||||||
|
|
||||||
var basic = profile["https://tent.io/types/info/basic/v0.1.0"];
|
var basic = profile["https://tent.io/types/info/basic/v0.1.0"];
|
||||||
|
debug(basic)
|
||||||
|
|
||||||
if (profile && basic) {
|
if (profile && basic) {
|
||||||
|
|
||||||
|
|
|
@ -941,9 +941,10 @@ function(jQuery, Paths, URI, HostApp, Cache) {
|
||||||
iframe.contents().find('*').each(function () {
|
iframe.contents().find('*').each(function () {
|
||||||
$(this).removeAttr("tabindex");
|
$(this).removeAttr("tabindex");
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
iframe.attr("src", 'http://www.youtube.com/embed/' + id + '?rel=0&showsearch=0&version=3&modestbranding=1');
|
|
||||||
|
|
||||||
|
// 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) {
|
Core.prototype.addVimeo = function(id, images) {
|
||||||
|
|
Reference in a new issue