1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-11-01 00:12:30 +01:00
Sonarr/UI/Settings/Indexers/ItemView.js

34 lines
842 B
JavaScript
Raw Normal View History

2013-05-01 02:01:54 +02:00
"use strict";
define([
'app',
'Settings/Indexers/Collection'
], function () {
NzbDrone.Settings.Indexers.ItemView = Backbone.Marionette.ItemView.extend({
template : 'Settings/Indexers/ItemTemplate',
2013-05-01 02:01:54 +02:00
initialize: function () {
NzbDrone.vent.on(NzbDrone.Commands.SaveSettings, this.saveSettings, this);
},
saveSettings: function () {
2013-05-02 00:42:30 +02:00
2013-05-01 02:01:54 +02:00
//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);
}
};
}
});
});