Fix jumping to the top of the page on unit delete.

This commit is contained in:
Peter Fogg
2013-08-09 15:18:08 -04:00
parent 53bda391ae
commit cde8ee50d7

View File

@@ -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.'),