Skip to content

Commit

Permalink
fix escaping of activity text after sign up
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoglom committed Sep 13, 2015
1 parent a019cad commit 1c72f25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intranet/static/js/eighth/signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ $(function() {
$(".current-day .both-blocks .selected-activity").html("<span class='no-activity-selected'>\nNo activity selected</span>").attr("title", "");
$(".current-day .both-blocks").removeClass("both-blocks");

$(".current-day .blocks a[data-bid='" + bid + "'] .block .selected-activity").text("\n" + activity.attributes.name_with_flags_for_user).attr("title", activity.attributes.name_with_flags_for_user);
$(".current-day .blocks a[data-bid='" + bid + "'] .block .selected-activity").text("\n" + $('<textarea />').html(activity.attributes.name_with_flags_for_user).text()).attr("title", activity.attributes.name_with_flags_for_user);
} else {
$(".current-day .selected-activity").text("\n" + activity.attributes.name_with_flags_for_user).attr("title", activity.attributes.name_with_flags_for_user);
$(".current-day .selected-activity").text("\n" + $('<textarea />').html(activity.attributes.name_with_flags_for_user).text()).attr("title", activity.attributes.name_with_flags_for_user);
$(".current-day .block").addClass("both-blocks");
}

Expand Down

0 comments on commit 1c72f25

Please sign in to comment.