mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-27 10:07:10 +00:00
36 lines
859 B
JavaScript
36 lines
859 B
JavaScript
"use strict";
|
|
|
|
define([
|
|
'app',
|
|
'Settings/Notifications/Model'
|
|
|
|
], function () {
|
|
|
|
NzbDrone.Settings.Notifications.EditView = Backbone.Marionette.ItemView.extend({
|
|
template : 'Settings/Notifications/EditTemplate',
|
|
|
|
events: {
|
|
'click .x-save': 'save'
|
|
},
|
|
|
|
save: function () {
|
|
this.model.save();
|
|
|
|
// window.alert('saving');
|
|
// this.model.save(undefined, this.syncNotification("Notification Settings Saved", "Couldn't Save Notification Settings"));
|
|
},
|
|
|
|
|
|
syncNotification: function (success, error) {
|
|
return {
|
|
success: function () {
|
|
window.alert(success);
|
|
},
|
|
|
|
error: function () {
|
|
window.alert(error);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
});
|