mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-30 19:56:54 +00:00
33 lines
842 B
JavaScript
33 lines
842 B
JavaScript
"use strict";
|
|
|
|
define([
|
|
'app',
|
|
'Settings/Indexers/Collection'
|
|
|
|
], function () {
|
|
|
|
NzbDrone.Settings.Indexers.ItemView = Backbone.Marionette.ItemView.extend({
|
|
template : 'Settings/Indexers/ItemTemplate',
|
|
initialize: function () {
|
|
NzbDrone.vent.on(NzbDrone.Commands.SaveSettings, this.saveSettings, this);
|
|
},
|
|
|
|
saveSettings: function () {
|
|
|
|
//this.model.save(undefined, this.syncNotification("Naming Settings Saved", "Couldn't Save Naming Settings"));
|
|
},
|
|
|
|
|
|
syncNotification: function (success, error) {
|
|
return {
|
|
success: function () {
|
|
window.alert(success);
|
|
},
|
|
|
|
error: function () {
|
|
window.alert(error);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
});
|