Merge pull request #628 from edx/peter-fogg/fix-unit-delete-jump
Fix jumping to the top of the page on unit delete.
This commit is contained in:
@@ -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.'),
|
||||
|
||||
Reference in New Issue
Block a user