mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Bootstrap loading profiles via ajax
This commit is contained in:
parent
44c7a58595
commit
0ecbb30345
18 changed files with 92 additions and 122 deletions
|
@ -1,18 +0,0 @@
|
|||
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();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
|
@ -1,4 +1,4 @@
|
|||
window.Profile = Backbone.Model.extend({
|
||||
window.QualityProfile = Backbone.Model.extend({
|
||||
|
||||
urlRoot: '/api/qualityprofiles',
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
window.QualityProfileCollection = Backbone.Collection.extend({
|
||||
model: QualityProfile,
|
||||
url: '/api/qualityprofiles'
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue