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.
This commit is contained in:
evazion
2018-08-15 18:51:28 -05:00
parent 86f05ef9e3
commit ec0646c234

View File

@@ -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();
});