Commit 8b2346fc by Peter Fogg

Merge pull request #628 from edx/peter-fogg/fix-unit-delete-jump

Fix jumping to the top of the page on unit delete.
parents 5b5c8151 cde8ee50
......@@ -120,6 +120,7 @@ class CMS.Views.UnitEdit extends Backbone.View
@model.save()
deleteComponent: (event) =>
event.preventDefault()
msg = new CMS.Views.Prompt.Warning(
title: gettext('Delete this component?'),
message: gettext('Deleting this component is permanent and cannot be undone.'),
......
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