2013-06-25 07:21:10 +00:00
|
|
|
|
"use strict";
|
|
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
|
define(
|
|
|
|
|
[
|
|
|
|
|
'backbone'
|
|
|
|
|
], function (Backbone) {
|
|
|
|
|
return Backbone.Model.extend({
|
2013-03-07 08:01:18 +00:00
|
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
|
mutators: {
|
|
|
|
|
thirtyMinuteSize: function () {
|
2013-06-28 17:25:09 +00:00
|
|
|
|
var maxSize = this.get('maxSize');
|
|
|
|
|
|
|
|
|
|
if (maxSize === 0) {
|
|
|
|
|
return 'No Limit';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (maxSize * 1024 * 1024 * 30).bytes(1);
|
2013-06-24 23:41:59 +00:00
|
|
|
|
},
|
|
|
|
|
sixtyMinuteSize : function () {
|
2013-06-28 17:25:09 +00:00
|
|
|
|
var maxSize = this.get('maxSize');
|
|
|
|
|
|
|
|
|
|
if (maxSize === 0) {
|
|
|
|
|
return 'No Limit';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (maxSize * 1024 * 1024 * 60).bytes(1);
|
2013-06-24 23:41:59 +00:00
|
|
|
|
}
|
2013-03-07 08:01:18 +00:00
|
|
|
|
}
|
2013-06-24 23:41:59 +00:00
|
|
|
|
});
|
2013-03-07 08:01:18 +00:00
|
|
|
|
});
|