|
|
@ -24,7 +24,7 @@ define(['marionette', 'Mixins/AsModelBoundView', 'jquery.knob'], function (Mario
|
|
|
|
this.ui.knob.knob({
|
|
|
|
this.ui.knob.knob({
|
|
|
|
min : 0,
|
|
|
|
min : 0,
|
|
|
|
max : 200,
|
|
|
|
max : 200,
|
|
|
|
step : 10,
|
|
|
|
step : 5,
|
|
|
|
cursor : 25,
|
|
|
|
cursor : 25,
|
|
|
|
width : 150,
|
|
|
|
width : 150,
|
|
|
|
stopper : true,
|
|
|
|
stopper : true,
|
|
|
@ -32,11 +32,19 @@ define(['marionette', 'Mixins/AsModelBoundView', 'jquery.knob'], function (Mario
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
_changeMaxSize: function (e) {
|
|
|
|
_changeMaxSize: function () {
|
|
|
|
var value = this.model.get('maxSize');
|
|
|
|
var maxSize = this.model.get('maxSize');
|
|
|
|
|
|
|
|
var bytes = maxSize * 1024 * 1024;
|
|
|
|
|
|
|
|
var thirty = (bytes * 30).bytes(1);
|
|
|
|
|
|
|
|
var sixty = (bytes * 60).bytes(1);
|
|
|
|
|
|
|
|
|
|
|
|
this.ui.thirtyMinuteSize.html(value * 30);
|
|
|
|
if (parseInt(maxSize) === 0) {
|
|
|
|
this.ui.sixtyMinuteSize.html(value * 60);
|
|
|
|
thirty = 'No Limit';
|
|
|
|
|
|
|
|
sixty = 'No Limit';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.ui.thirtyMinuteSize.html(thirty);
|
|
|
|
|
|
|
|
this.ui.sixtyMinuteSize.html(sixty);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|