Show notification on component reorder.
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user