From 8a2a61ebda12387044afcbc82699e75fa29663fe Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Thu, 14 Dec 2017 05:50:59 +0000 Subject: [PATCH] Add support to IE --- webapp/titanembeds/static/js/embed.js | 4 ++-- webapp/titanembeds/templates/embed.html.j2 | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index 730be2d..958db29 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -709,9 +709,9 @@ for (var i = 0; i < badges_options.length; i++) { var badge = badges_options[i]; if (data.badges.indexOf(badge) != -1) { - $(`#usercard .badges .${badge}`).show(); + $("#usercard .badges ." + badge).show(); } else { - $(`#usercard .badges .${badge}`).hide(); + $("#usercard .badges ." + badge).hide(); } } $("#usercard .avatar").attr("src", data.avatar_url); diff --git a/webapp/titanembeds/templates/embed.html.j2 b/webapp/titanembeds/templates/embed.html.j2 index 9142c9b..82606ed 100644 --- a/webapp/titanembeds/templates/embed.html.j2 +++ b/webapp/titanembeds/templates/embed.html.j2 @@ -243,6 +243,7 @@ +