aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-03-20 16:21:58 +0600
committerStas Vilchik <vilchiks@gmail.com>2014-03-20 16:22:09 +0600
commit5666d41460c1784d210d32cd9ec8de7b7c039035 (patch)
treea383c6fc4e8fe14a9c7073cee63bff1f0cc75ab7
parent7c7a5c04a40a23cda3c49e780f6e6f34216c8dff (diff)
downloadsonarqube-5666d41460c1784d210d32cd9ec8de7b7c039035.tar.gz
sonarqube-5666d41460c1784d210d32cd9ec8de7b7c039035.zip
SONAR-4366 Transform WORK_DUR in read-only mode
-rw-r--r--sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.coffee2
-rw-r--r--sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.coffee b/sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.coffee
index 50992789af0..75aaa8084d8 100644
--- a/sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.coffee
+++ b/sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.coffee
@@ -118,6 +118,6 @@ define [
periodText: period?.text
unless @options.app.canEdit
_.extend data,
- warning: jQuery('<input>').data('type', @model.get('metric').type).val(@model.get('warning')).val()
+ warning: jQuery('<input>').data('type', @model.get('metric').type).val(@model.get('warning')).originalVal()
error: jQuery('<input>').data('type', @model.get('metric').type).val(@model.get('error')).originalVal()
data
diff --git a/sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.js b/sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.js
index fba38b1ca8f..81d4cec0d49 100644
--- a/sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.js
+++ b/sonar-server/src/main/webapp/javascripts/quality-gate/views/quality-gate-detail-condition-view.js
@@ -151,7 +151,7 @@
});
if (!this.options.app.canEdit) {
_.extend(data, {
- warning: jQuery('<input>').data('type', this.model.get('metric').type).val(this.model.get('warning')).val(),
+ warning: jQuery('<input>').data('type', this.model.get('metric').type).val(this.model.get('warning')).originalVal(),
error: jQuery('<input>').data('type', this.model.get('metric').type).val(this.model.get('error')).originalVal()
});
}