Unverified Commit faff140a authored by flaburgan's avatar flaburgan Committed by Benjamin Neff

Avoid page to jump to top after a post deletion, fixes #7628

closes #7638
parent 2711b9dc
......@@ -28,6 +28,7 @@
* Delete invalid oEmbed caches with binary titles [#7620](https://github.com/diaspora/diaspora/pull/7620)
* Delete invalid diaspora IDs from friendica [#7630](https://github.com/diaspora/diaspora/pull/7630)
* Cleanup relayables where the signature is missing [#7637](https://github.com/diaspora/diaspora/pull/7637)
* Avoid page to jump to top after a post deletion [#7638](https://github.com/diaspora/diaspora/pull/7638)
## Features
* Ask for confirmation when leaving a submittable comment field [#7530](https://github.com/diaspora/diaspora/pull/7530)
......
......@@ -78,7 +78,8 @@ app.views.PostControls = app.views.Base.extend({
}.bind(this));
},
destroyModel: function() {
destroyModel: function(evt) {
if (evt) { evt.preventDefault(); }
this.post.destroyModel();
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment