Hide spoilers only when clicked

This commit is contained in:
Jiiks 2015-11-28 01:44:56 +02:00
parent 02db4d1822
commit ca64ece346
2 changed files with 2 additions and 3 deletions

View File

@ -276,12 +276,11 @@ EmoteModule.prototype.injectEmote = function(node) {
return;
}
spoilered.push(reactId);
markup.addClass("spoiler");
markup.on("click", function() {
$(this).removeClass("spoiler");
spoilered.push($(this).attr("data-reactid"));
});
return;

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long