More notificationUI changes, start notification updates

This commit is contained in:
Mark McDowall 2013-05-20 23:16:19 -07:00
parent c5376319fe
commit 63f2ba7f77
16 changed files with 188 additions and 78 deletions

View file

@ -0,0 +1,36 @@
"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);
}
};
}
});
});