mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 21:39:34 +02:00
Added backbone
This commit is contained in:
18
NzbDrone.Web/Scripts/backbone/models/profileCollection.js
Normal file
18
NzbDrone.Web/Scripts/backbone/models/profileCollection.js
Normal file
@@ -0,0 +1,18 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user