Browse Source

Make preview spoilers work

spaghetti 7 years ago
parent
commit
d67e8e205f
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      static/functions/bbcode.js

+ 2
- 4
static/functions/bbcode.js View File

70
 }
70
 }
71
 
71
 
72
 $(function() {
72
 $(function() {
73
-  $('.bbcode_editor').each(function(i, el) { BBEditor(el) })
74
-  $('.spoilerButton').each(function(i, el) {
75
-    el.addEventListener("click", ()=>BBSpoiler(el))
76
-  })
73
+  $('.bbcode_editor').each((i, el) => BBEditor(el))
74
+  $(document).on('click', '.spoilerButton', e=>BBSpoiler(e.target))
77
 })
75
 })

Loading…
Cancel
Save