Merge pull request #550 from edx/peter-fogg/unit-reorder-notification

Show notification on component reorder.
This commit is contained in:
Peter Fogg
2013-08-01 09:46:22 -07:00

View File

@@ -41,7 +41,12 @@ class CMS.Views.UnitEdit extends Backbone.View
id: unit_location_analytics
payload = children : @components()
options = success : => @model.unset('children')
saving = new CMS.Views.Notification.Mini
title: gettext('Saving') + '…'
saving.show()
options = success : =>
@model.unset('children')
saving.hide()
@model.save(payload, options)
helper: 'clone'
opacity: '0.5'