Browse Source

HUE-2138 [search] Slider widget UX

Reduced font size on the input
Fixed min/max problem
Enrico Berti 11 years ago
parent
commit
9df4725

+ 4 - 4
apps/search/src/search/templates/search.mako

@@ -1377,10 +1377,10 @@ $(document).ready(function () {
         tooltip: 'always'
       });
       _el.on("slide", function (e) {
-        _options.start(e.start);
-        _options.end(e.end);
-        _options.min(e.min);
-        _options.max(e.max);
+        _options.start(e.min);
+        _options.end(e.max);
+        _options.min(e.start);
+        _options.max(e.end);
         _options.gap(e.step);
       });
     },

+ 1 - 1
desktop/core/static/css/bootstrap-slider.css

@@ -76,7 +76,7 @@
 }
 
 .slider input {
-  font-size: 10px;
+  font-size: 9px;
   width: 40px;
   border: 1px solid #CCC !important;
   min-height: 20px !important;