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