Bootstrap loading profiles via ajax

This commit is contained in:
Mark McDowall 2012-11-09 08:28:59 -08:00
commit 0ecbb30345
18 changed files with 92 additions and 122 deletions

View file

@ -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();
}
}
});
}
});

View file

@ -1,4 +1,4 @@
window.Profile = Backbone.Model.extend({
window.QualityProfile = Backbone.Model.extend({
urlRoot: '/api/qualityprofiles',

View file

@ -0,0 +1,4 @@
window.QualityProfileCollection = Backbone.Collection.extend({
model: QualityProfile,
url: '/api/qualityprofiles'
});