making modals event driven,

This commit is contained in:
Keivan Beigi 2013-07-23 18:15:58 -07:00 committed by kay.one
parent 2083a86c2a
commit 00dcce469d
18 changed files with 100 additions and 53 deletions

View file

@ -63,7 +63,7 @@ define(['app', 'marionette', 'Mixins/AsModelBoundView'], function (App, Marionet
if (promise) {
promise.done(function () {
self.profileCollection.add(self.model, { merge: true });
App.modalRegion.closeModal();
App.vent.trigger(App.Commands.CloseModalCommand);
});
}
}