Skip to content
Permalink
Browse files

Fix JS on profile page

On profile edit this is not #content
Fixes #866
  • Loading branch information...
nikolai-b committed Aug 13, 2019
1 parent e5ea27e commit 81dce9a7eccca8781c9631d5a131ae873a40233e
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/assets/javascripts/thread_scroller.js
@@ -1,6 +1,6 @@
$(document).ready(function () {
var offset
var viewMessageId = $('#content').data().viewMessageId
var viewMessageId = $('#content').data('view-message-id')
if (viewMessageId) {
offset = $('#message-' + viewMessageId).offset()
}

0 comments on commit 81dce9a

Please sign in to comment.
You can’t perform that action at this time.