Permalink
Browse files

select_slider

  • Loading branch information...
1 parent 68ca573 commit ba9dc8774c09235c3a2bb30ed57e531126eaaba6 @kristianmandrup committed Sep 10, 2012
@@ -25,6 +25,7 @@
//= require autocomplete-rails
//= require gmaps-autocomplete
+//= require ui.select_slider.jquery
//= require gallery/responsive
@@ -14,3 +14,5 @@ $company-name: unquote("Rent machine");
/* Icons */
@import 'icons';
@import 'jquery.ui.all';
+
+@import 'ui.select_slider';
@@ -23,6 +23,13 @@ div.control-group {
font-size: 0.8em;
}
+a#handle_rooms_to .ui-slider-tooltip,
+a#handle_rooms_from .ui-slider-tooltip {
+ width: 1em !important;
+ margin-left: 0;
+}
+
+
label,
div.controls {
display: inline-block;
@@ -19,11 +19,11 @@ def search_button form
end
def slider_rooms
- ui_select_slider :html => {:id => 'rooms', :class => 'slider rooms'}, :ui => {:labels => 5}, :labels => (1..5).to_a, :range => [1,3]
+ ui_select_slider html: {id: 'rooms', class: 'slider rooms'}, ui: {labels: 5}, labels: (1..5).to_a, range: [1,3]
end
def slider_size
- ui_select_slider :html => {:id => 'size', :class => 'slider size'}, :ui => {:labels => 3}, :labels => (1..10).to_a.map{|v| v*10}, :range => [30,60]
+ ui_select_slider html: {id: 'size', class: 'slider size'}, ui: {labels: 3}, labels: (1..10).to_a.map{|v| v*10}, range: [30,60]
end
protected

0 comments on commit ba9dc87

Please sign in to comment.