mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -07:00
Fixed notifications re GH feedback.
This commit is contained in:
parent
3b09cc1240
commit
9ed187202a
2 changed files with 11 additions and 9 deletions
|
@ -6,14 +6,16 @@ define(['app', 'Settings/Notifications/ItemView', 'Settings/Notifications/AddVie
|
|||
template : 'Settings/Notifications/CollectionTemplate',
|
||||
|
||||
events: {
|
||||
'click .x-add': function () {
|
||||
var schema = new NzbDrone.Settings.Notifications.Collection();
|
||||
schema.url = '/api/notification/schema';
|
||||
schema.fetch();
|
||||
'click .x-add': 'openSchemaModal'
|
||||
},
|
||||
|
||||
var view = new NzbDrone.Settings.Notifications.AddView({ collection: schema});
|
||||
NzbDrone.modalRegion.show(view);
|
||||
}
|
||||
openSchemaModal: function () {
|
||||
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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue