]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5073 Display an error message when dates are not properly set in the Issues...
authorStas Vilchik <vilchiks@gmail.com>
Tue, 29 Jul 2014 10:26:02 +0000 (12:26 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 29 Jul 2014 10:26:09 +0000 (12:26 +0200)
Allow user input, but fix the wrong input

server/sonar-web/src/main/js/navigator/filters/range-filters.js

index 8457ee356d6a8b94016ead159a8d0b6f972a0de8..1627895022ec296c1b598c51ba5b8667083f74c2 100644 (file)
@@ -171,12 +171,14 @@ define([
     render: function() {
       RangeFilterView.prototype.render.apply(this, arguments);
       this.detailsView.$('input')
-          .prop('readonly', true)
           .prop('placeholder', '1970-01-31')
           .datepicker({
             dateFormat: 'yy-mm-dd',
             changeMonth: true,
             changeYear: true
+          })
+          .on('change', function () {
+            jQuery(this).datepicker('setDate', jQuery(this).val());
           });
     },