Indexes are created with the same uniqueness when copying a table

New: Non-English episode support
New: Renamed Quality Profiles to Profiles and made them more powerful
New: Configurable wait time before grabbing a release to wait for a better quality
This commit is contained in:
Mark McDowall 2014-06-08 01:22:55 -07:00
commit 74a38415cf
182 changed files with 2493 additions and 2433 deletions

View file

@ -0,0 +1,18 @@
'use strict';
define(
[
'backbone',
'Profile/ProfileModel'
], function (Backbone, ProfileModel) {
var ProfileCollection = Backbone.Collection.extend({
model: ProfileModel,
url : window.NzbDrone.ApiRoot + '/profile'
});
var profiles = new ProfileCollection();
profiles.fetch();
return profiles;
});

View file

@ -0,0 +1,14 @@
'use strict';
define(
[
'backbone.deepmodel'
], function (DeepModel) {
return DeepModel.DeepModel.extend({
defaults: {
id : null,
name : '',
cutoff: null
}
});
});

View file

@ -0,0 +1,5 @@
<select class="col-md-2 form-control x-profile">
{{#each this}}
<option value="{{id}}">{{name}}</option>
{{/each}}
</select>