diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-03-20 13:17:29 +0600 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-03-20 13:17:29 +0600 |
commit | 27447442880586ef8636448b07857eee75d270c1 (patch) | |
tree | f661b92fc163d98387be5903783d1be2e4893a61 /sonar-server/src/main/webapp/javascripts/quality-gate/collections/quality-gates.js | |
parent | a918f608159c3b22079c0757a28f69db3f00f50a (diff) | |
download | sonarqube-27447442880586ef8636448b07857eee75d270c1.tar.gz sonarqube-27447442880586ef8636448b07857eee75d270c1.zip |
Grunt Handlebars
Diffstat (limited to 'sonar-server/src/main/webapp/javascripts/quality-gate/collections/quality-gates.js')
-rw-r--r-- | sonar-server/src/main/webapp/javascripts/quality-gate/collections/quality-gates.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/sonar-server/src/main/webapp/javascripts/quality-gate/collections/quality-gates.js b/sonar-server/src/main/webapp/javascripts/quality-gate/collections/quality-gates.js deleted file mode 100644 index 6167539697e..00000000000 --- a/sonar-server/src/main/webapp/javascripts/quality-gate/collections/quality-gates.js +++ /dev/null @@ -1,33 +0,0 @@ -(function() { - var __hasProp = {}.hasOwnProperty, - __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; - - define(['backbone', 'quality-gate/models/quality-gate'], function(Backbone, QualityGate) { - var QualityGates; - return QualityGates = (function(_super) { - __extends(QualityGates, _super); - - function QualityGates() { - return QualityGates.__super__.constructor.apply(this, arguments); - } - - QualityGates.prototype.model = QualityGate; - - QualityGates.prototype.url = function() { - return "" + baseUrl + "/api/qualitygates/list"; - }; - - QualityGates.prototype.parse = function(r) { - return r.qualitygates.map(function(gate) { - return _.extend(gate, { - "default": gate.id === r["default"] - }); - }); - }; - - return QualityGates; - - })(Backbone.Collection); - }); - -}).call(this); |