mirror of https://github.com/Sonarr/Sonarr
18 lines
373 B
JavaScript
18 lines
373 B
JavaScript
|
window.ProfileCollection = Backbone.Collection.extend({
|
|||
|
|
|||
|
model: Profile,
|
|||
|
|
|||
|
url: '/api/qualityprofiles',
|
|||
|
|
|||
|
search: function (searchTerm, options) {
|
|||
|
|
|||
|
var self = this;
|
|||
|
this.fetch({
|
|||
|
success: function () {
|
|||
|
if (options.success) {
|
|||
|
options.success();
|
|||
|
}
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
});
|