Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Profiles.Framework.Utilities;
using System.Xml;
using System.Collections.Generic;
using System.Web;
using System.Web.UI.HtmlControls;

namespace Profiles.Profile.Modules.CustomViewUCSFPlugins
Expand Down Expand Up @@ -42,7 +43,7 @@ private void LoadAssets()
//litjs.Text = base.SocialMediaInit(this.PlugInName);
//TODO Obviously change this
//litjs.Text = base.jsStart + "FeaturedVideos.init('" + Profiles.Framework.Utilities.GenericRDFDataIO.GetSocialMediaPlugInData(this.SubjectID, "UCSFFeaturedVideos").Replace("'", "\\'") + "'); " + base.jsEnd;
litjs.Text = base.jsStart + "FeaturedVideos.init('" + Profiles.Framework.Utilities.GenericRDFDataIO.GetSocialMediaPlugInData(this.SubjectID, "UCSFFeaturedVideos").Replace("\\", "\\\\").Replace("'", "\\'") + "'); " + base.jsEnd;
litjs.Text = base.jsStart + "FeaturedVideos.init('" + HttpUtility.JavaScriptStringEncode(Profiles.Framework.Utilities.GenericRDFDataIO.GetSocialMediaPlugInData(this.SubjectID, "UCSFFeaturedVideos")) + "'); " + base.jsEnd;


HtmlLink Displaycss = new HtmlLink();
Expand All @@ -55,4 +56,4 @@ private void LoadAssets()
}

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ FeaturedVideos.getVideoMetadata = function (video, max_height, max_width, callba
var oembedURL = oEmbedURLBase + '?maxheight=' + max_height + '&maxwidth=' + max_width + '&url=' + encodeURIComponent(video.url);
var req = $.ajax({
url: oembedURL,
dataType: "jsonp",
dataType: "json",
timeout: 10000,
success: callback
});
Expand Down