You've already forked Sonarr
mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-09-16 09:26:36 +02:00
Fixed notifications re GH feedback.
This commit is contained in:
@@ -12,10 +12,10 @@ define([
|
|||||||
className: 'btn',
|
className: 'btn',
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
'click': 'add'
|
'click': 'addNotification'
|
||||||
},
|
},
|
||||||
|
|
||||||
add: function () {
|
addNotification: function () {
|
||||||
this.model.set('id', undefined);
|
this.model.set('id', undefined);
|
||||||
var view = new NzbDrone.Settings.Notifications.EditView({ model: this.model});
|
var view = new NzbDrone.Settings.Notifications.EditView({ model: this.model});
|
||||||
NzbDrone.modalRegion.show(view);
|
NzbDrone.modalRegion.show(view);
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user