|
|
@ -6,14 +6,16 @@ define(['app', 'Settings/Notifications/ItemView', 'Settings/Notifications/AddVie
|
|
|
|
template : 'Settings/Notifications/CollectionTemplate',
|
|
|
|
template : 'Settings/Notifications/CollectionTemplate',
|
|
|
|
|
|
|
|
|
|
|
|
events: {
|
|
|
|
events: {
|
|
|
|
'click .x-add': function () {
|
|
|
|
'click .x-add': 'openSchemaModal'
|
|
|
|
var schema = new NzbDrone.Settings.Notifications.Collection();
|
|
|
|
},
|
|
|
|
schema.url = '/api/notification/schema';
|
|
|
|
|
|
|
|
schema.fetch();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var view = new NzbDrone.Settings.Notifications.AddView({ collection: schema});
|
|
|
|
openSchemaModal: function () {
|
|
|
|
NzbDrone.modalRegion.show(view);
|
|
|
|
var schema = new NzbDrone.Settings.Notifications.Collection();
|
|
|
|
}
|
|
|
|
schema.url = '/api/notification/schema';
|
|
|
|
|
|
|
|
schema.fetch();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var view = new NzbDrone.Settings.Notifications.AddView({ collection: schema});
|
|
|
|
|
|
|
|
NzbDrone.modalRegion.show(view);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|