1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-11-01 16:32:56 +01:00
Sonarr/NzbDrone.Backbone/Quality/QualitySizeModel.js
Mark McDowall 6b8314206a Quality Settings divided up in layout
Using bootstrap slider
2013-03-07 00:01:18 -08:00

17 lines
430 B
JavaScript

define(['app'], function () {
NzbDrone.Quality.QualitySizeModel = Backbone.Model.extend({
initialize: function () {
this.validators = {};
},
mutators: {
thirtyMinuteSize: function() {
return this.get('maxSize') * 30;
},
sixtyMinuteSize: function(){
return this.get('maxSize') * 60;
}
}
});
});