diff options
| author | julian laplace <julescarbon@gmail.com> | 2022-11-02 13:29:26 +0100 |
|---|---|---|
| committer | julian laplace <julescarbon@gmail.com> | 2022-11-02 13:29:26 +0100 |
| commit | bfb3c36659821fc1dfa3ae1617207b4e5099954a (patch) | |
| tree | b153632d2dfd3daa51fc92803c3f8d39179ed6f7 /public/assets/js/lib/views/stream/hootstream.js | |
| parent | b17710f4b9bec8fbeccd08da94e709d8def4f6b9 (diff) | |
fixing hoot form
Diffstat (limited to 'public/assets/js/lib/views/stream/hootstream.js')
| -rw-r--r-- | public/assets/js/lib/views/stream/hootstream.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/public/assets/js/lib/views/stream/hootstream.js b/public/assets/js/lib/views/stream/hootstream.js index 57009fd..ebef14a 100644 --- a/public/assets/js/lib/views/stream/hootstream.js +++ b/public/assets/js/lib/views/stream/hootstream.js @@ -67,8 +67,10 @@ var HootStream = View.extend({ }, onClickAction: function (event) { - const action = $(event.target).data("action"); - const thread = $(event.target).closest(".threadTitle").data("thread"); + const action = $(event.currentTarget).data("action"); + const thread = $(event.currentTarget) + .closest(".threadTitle") + .data("thread"); console.log(action, thread); switch (action) { case "play": |
