diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-10-02 10:18:07 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-10-02 10:18:07 +0200 |
commit | 64cc6661ccc94f2db15d598e313d0d0b4b9ddba9 (patch) | |
tree | 5c33dc174a0d6258640b1af937775cca18e3f3ea /server/sonar-web/src/main/js/apps/provisioning/projects.js | |
parent | 3aa4e0789f603f3c579a5f0184fa024afd3792fa (diff) | |
download | sonarqube-64cc6661ccc94f2db15d598e313d0d0b4b9ddba9.tar.gz sonarqube-64cc6661ccc94f2db15d598e313d0d0b4b9ddba9.zip |
SONAR-6556 clean up bulk deletion and provisioning stuff
Diffstat (limited to 'server/sonar-web/src/main/js/apps/provisioning/projects.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/provisioning/projects.js | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/server/sonar-web/src/main/js/apps/provisioning/projects.js b/server/sonar-web/src/main/js/apps/provisioning/projects.js deleted file mode 100644 index 8e31d6a2a04..00000000000 --- a/server/sonar-web/src/main/js/apps/provisioning/projects.js +++ /dev/null @@ -1,49 +0,0 @@ -import _ from 'underscore'; -import Backbone from 'backbone'; -import Project from './project'; - -export default Backbone.Collection.extend({ - model: Project, - - url: function () { - return baseUrl + '/api/projects/provisioned'; - }, - - parse: function (r) { - this.total = r.total; - this.p = r.p; - this.ps = r.ps; - return r.projects; - }, - - fetch: function (options) { - var d = (options && options.data) || {}; - this.q = d.q; - return this._super(options); - }, - - fetchMore: function () { - var p = this.p + 1; - return this.fetch({ add: true, remove: false, data: { p: p, ps: this.ps, q: this.q } }); - }, - - refresh: function () { - return this.fetch({ reset: true, data: { q: this.q } }); - }, - - hasMore: function () { - return this.total > this.p * this.ps; - }, - - bulkDelete: function (ids, options) { - var opts = _.extend({}, options, { - type: 'POST', - url: baseUrl + '/api/projects/bulk_delete', - data: { ids: ids.join() } - }); - return Backbone.ajax(opts); - } - -}); - - |