]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5169 Apply feedback
authorStas Vilchik <vilchiks@gmail.com>
Thu, 3 Apr 2014 08:04:51 +0000 (14:04 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 3 Apr 2014 08:04:59 +0000 (14:04 +0600)
sonar-server/src/main/coffee/navigator/filters/date-filter-view.coffee
sonar-server/src/main/js/navigator/filters/range-filters.js
sonar-server/src/main/js/third-party/jquery-ui.js
sonar-server/src/main/less/icons.less
sonar-server/src/main/less/jquery-ui.less
sonar-server/src/main/webapp/WEB-INF/app/views/action_plans/_create_form.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/action_plans/_edit_form.html.erb

index 663b2ba9a1321286c0ad2a21e32443f109a1e8ef..fad2d2da9ba244835e75e933ea9f33d45aea2757 100644 (file)
@@ -8,4 +8,7 @@ define [
 
     render: ->
       super
-      @detailsView.$('input').prop('placeholder', '1970-01-31').datepicker dateFormat: 'yy-mm-dd'
+      @detailsView.$('input').prop('placeholder', '1970-01-31').datepicker
+        dateFormat: 'yy-mm-dd'
+        changeMonth: true
+        changeYear: true
index 8883a9e4ed06aba0c614a7a3ab4fb10c3806e855..5d42e5f3d0328e4ad80f0d912161bab4bf40e05c 100644 (file)
@@ -168,7 +168,11 @@ define(['navigator/filters/base-filters', 'common/handlebars-extensions'], funct
       RangeFilterView.prototype.render.apply(this, arguments);
       this.detailsView.$('input')
           .prop('placeholder', '1970-01-31')
-          .datepicker({ dateFormat: 'yy-mm-dd' });
+          .datepicker({
+            dateFormat: 'yy-mm-dd',
+            changeMonth: true,
+            changeYear: true
+          });
     },
 
 
index 80509fff4aafdf902592c5f897ff9307e55fa62d..c5517d8448a1743bebbd4124626dcbc3ac7f95b5 100755 (executable)
@@ -5378,7 +5378,7 @@ $.extend(Datepicker.prototype, {
 
                prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ?
                        "<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'" +
-                       " title='" + t(prevText) + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w") + "'>" + t(prevText) + "</span></a>" :
+                       " title='" + t(prevText) + "'><i class='icon-arrow-" + ( isRTL ? "right" : "left") + "'></i> " + t(prevText) + "</a>" :
                        (hideIfNoPrevNext ? "" : "<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+ t(prevText) +"'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w") + "'>" + t(prevText) + "</span></a>"));
 
                nextText = this._get(inst, "nextText");
@@ -5388,7 +5388,7 @@ $.extend(Datepicker.prototype, {
 
                next = (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ?
                        "<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'" +
-                       " title='" + t(nextText) + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e") + "'>" + t(nextText) + "</span></a>" :
+                       " title='" + t(nextText) + "'>" + t(nextText) + " <i class='icon-arrow-" + ( isRTL ? "left" : "right") + "'></i></a>" :
                        (hideIfNoPrevNext ? "" : "<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+ t(nextText) + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e") + "'>" + t(nextText) + "</span></a>"));
 
                currentText = this._get(inst, "currentText");
index e75e4c16e6bd2415850c9ffe1f041c4c04a86ebd..b81f54df8996eab598994a776b92ab847ebc1321 100644 (file)
@@ -9,9 +9,7 @@
   font-style: normal;
 }
 
-[class^="icon-"], [class*=" icon-"],
-.ui-icon-circle-triangle-e,
-.ui-icon-circle-triangle-w {
+[class^="icon-"], [class*=" icon-"] {
   font-family: 'sonar';
   speak: none;
   font-style: normal;
@@ -241,23 +239,11 @@ a[class^="icon-"], a[class*=" icon-"] {
   position: relative;
   top: -2px;
 }
-.icon-arrow-left:before,
-.ui-icon-circle-triangle-w:before {
-  position: relative;
-  top: 1px;
+.icon-arrow-left:before {
   content: "\f0d9";
 }
-.ui-icon-circle-triangle-w:before {
-  margin-right: 3px;
-}
-.icon-arrow-right:before,
-.ui-icon-circle-triangle-e:after {
+.icon-arrow-right:before {
   content: "\f0da";
-  position: relative;
-  top: 1px;
-}
-.ui-icon-circle-triangle-e:after {
-  margin-left: 3px;
 }
 .icon-dropdown:before {
   content: "\f0d7";
index 6c03ea5cdd936bfe63afb83a7af1100447bec4ec..f5268fe87bd07c3b635eaad14bc92a73884fe2a3 100644 (file)
@@ -398,7 +398,7 @@ button.ui-button::-moz-focus-inner {
   right: 2px;
 }
 .ui-datepicker .ui-datepicker-title {
-  margin: 0 2.3em;
+  margin: 0 48px;
   line-height: 1.8em;
   color: #444;
   text-align: center;
@@ -454,6 +454,10 @@ button.ui-button::-moz-focus-inner {
   float: left;
 }
 
+.ui-datepicker-today { background-color: @contextBackground; }
+.ui-datepicker-current-day { background-color: @highlighted; }
+.ui-datepicker-current-day a { color: #fff; }
+
 /* with multiple calendars */
 .ui-datepicker.ui-datepicker-multi {
   width: auto;
index 738c5b8ff624a93bc157d7077d818866121f1ab1..cb0b7984c7357be8a6a7e21fbf242e8ff0b53cfc 100644 (file)
 
 <script>
   $j("#create-action-plan-form").modalForm();
+  $j("[name=deadline]").datepicker({
+    dateFormat: 'yy-mm-dd',
+    changeMonth: true,
+    changeYear: true
+  });
 </script>
 
index 0eac8938444a81e28387a8bc46a042a5d750eb5b..0da20a1070f256e2ddb156c642b94298cebe75e4 100644 (file)
 
 <script>
   $j("#edit-action-plan-form").modalForm();
-  $j("[name=deadline]").datepicker({ dateFormat: 'yy-mm-dd' });
+  $j("[name=deadline]").datepicker({
+    dateFormat: 'yy-mm-dd',
+    changeMonth: true,
+    changeYear: true
+  });
 </script>