You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
653 B
20 lines
653 B
'use strict';
|
|
define([
|
|
'app',
|
|
'Settings/Notifications/Collection',
|
|
'Settings/Notifications/AddView'
|
|
], function (App, NotificationCollection, AddSelectionNotificationView) {
|
|
return ({
|
|
|
|
open: function (collection) {
|
|
var schemaCollection = new NotificationCollection();
|
|
schemaCollection.url = '/api/notification/schema';
|
|
schemaCollection.fetch();
|
|
schemaCollection.url = '/api/notification';
|
|
|
|
var view = new AddSelectionNotificationView({ collection: schemaCollection, notificationCollection: collection});
|
|
App.modalRegion.show(view);
|
|
}
|
|
});
|
|
});
|