making modals event driven,

This commit is contained in:
Keivan Beigi
2013-07-23 18:15:58 -07:00
parent 121f3b973d
commit 62cea8de5e
18 changed files with 100 additions and 53 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ define(['app', 'marionette'], function (App, Marionette) {
this.model.destroy({
wait : true,
success: function () {
App.modalRegion.closeModal();
App.vent.trigger(App.Commands.CloseModalCommand);
}
});
}
+1 -1
View File
@@ -39,7 +39,7 @@ define([
if (promise) {
promise.done(function () {
self.notificationCollection.add(self.model, { merge: true });
App.modalRegion.closeModal();
App.vent.trigger(App.Commands.CloseModalCommand);
});
}
},