From ec0646c23445aeb91423b63e88442b244a67849f Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 15 Aug 2018 18:51:28 -0500 Subject: [PATCH] posts/show: don't scroll page when opening edit dialog. Don't scroll up the page when opening the tag edit dialog via shift+e. Fixes regression in #3812. --- app/javascript/src/javascripts/posts.js.erb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/javascript/src/javascripts/posts.js.erb b/app/javascript/src/javascripts/posts.js.erb index 71e853e3b..3af058b8b 100644 --- a/app/javascript/src/javascripts/posts.js.erb +++ b/app/javascript/src/javascripts/posts.js.erb @@ -83,7 +83,6 @@ Post.initialize_gestures = function() { Post.initialize_edit_dialog = function() { $("#open-edit-dialog").button().show().click(function(e) { - $(window).scrollTop($("#image").offset().top); Post.open_edit_dialog(); e.preventDefault(); });