You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
844 B
37 lines
844 B
"use strict";
|
|
|
|
define([
|
|
'app',
|
|
'Settings/Indexers/Model'
|
|
|
|
], function () {
|
|
|
|
NzbDrone.Settings.Indexers.EditView = Backbone.Marionette.ItemView.extend({
|
|
template : 'Settings/Indexers/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);
|
|
}
|
|
};
|
|
}
|
|
});
|
|
});
|