Carded notifications

This commit is contained in:
Mark McDowall 2013-06-25 17:34:33 -07:00
commit 195f9d9d27
12 changed files with 147 additions and 44 deletions

View file

@ -6,7 +6,8 @@ define([
'Settings/Notifications/Model',
'Settings/Notifications/DeleteView',
'Shared/Messenger',
'Mixins/AsModelBoundView'
'Mixins/AsModelBoundView',
'Form/FormBuilder'
], function (App, Marionette, NotificationModel, DeleteView, Messenger, AsModelBoundView) {
@ -29,10 +30,14 @@ define([
},
_saveNotification: function () {
var self = this;
var promise = this.model.saveSettings();
if (promise) {
promise.done(this._saveSuccess);
promise.done(function () {
self.notificationCollection.add(self.model, { merge: true });
App.modalRegion.closeModal();
});
}
},