Settings save when changed only

This commit is contained in:
Mark McDowall 2013-06-13 16:19:24 -07:00
parent 8b8ee912c0
commit bddbc7a0cf
7 changed files with 39 additions and 34 deletions

View file

@ -168,19 +168,11 @@ define([
NzbDrone.vent.trigger(NzbDrone.Commands.SaveSettings);
this.settings.save(undefined,
{
success: function () {
window.alert('Saved');
},
error : function () {
window.alert("couldn't save settings");
}
});
this.settings.saveIfChanged(undefined, NzbDrone.Settings.SyncNotificaiton.callback({
successMessage: 'Settings saved',
errorMessage: "Failed to save settings"
}));
}
})
;
})
;
});
});