about summary refs log tree commit diff
path: root/app/javascript/core
diff options
context:
space:
mode:
authorJenkins <jenkins@jenkins.ninjawedding.org>2018-01-24 19:17:11 +0000
committerJenkins <jenkins@jenkins.ninjawedding.org>2018-01-24 19:17:11 +0000
commit0e10667fbe8b565b05dd2f34c3ee14bed7f36967 (patch)
tree272ee0087b95e4f2dfeb08243bbeb60cc5d8a651 /app/javascript/core
parent1b4d79acf8a0667b15a6835479d2cae0c2de5612 (diff)
parenta3c0a2037314f105e807f9ede4210066a1524229 (diff)
Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master
Diffstat (limited to 'app/javascript/core')
-rw-r--r--app/javascript/core/admin.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/javascript/core/admin.js b/app/javascript/core/admin.js
index c0bd09bdd..b4125e84e 100644
--- a/app/javascript/core/admin.js
+++ b/app/javascript/core/admin.js
@@ -30,13 +30,13 @@ delegate(document, batchCheckboxClassName, 'change', () => {
 });
 
 delegate(document, '.media-spoiler-show-button', 'click', () => {
-  [].forEach.call(document.querySelectorAll('.activity-stream .media-spoiler-wrapper'), (content) => {
-    content.classList.add('media-spoiler-wrapper__visible');
+  [].forEach.call(document.querySelectorAll('button.media-spoiler'), (element) => {
+    element.click();
   });
 });
 
 delegate(document, '.media-spoiler-hide-button', 'click', () => {
-  [].forEach.call(document.querySelectorAll('.activity-stream .media-spoiler-wrapper'), (content) => {
-    content.classList.remove('media-spoiler-wrapper__visible');
+  [].forEach.call(document.querySelectorAll('.spoiler-button.spoiler-button--visible button'), (element) => {
+    element.click();
   });
 });