blacklight_range_limit 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.0.1
@@ -90,7 +90,7 @@ jQuery(document).ready(function($) {
90
90
 
91
91
  if(segment != last_segment) {
92
92
  $('.distribution').tooltip('destroy');
93
- $('.distribution').tooltip({'title': function() { return find_segment_for(pos.x).label + ' <span class="count">(' + segment.count + ')</span>' }, 'placement': 'bottom', 'trigger': 'manual', 'delay': { show: 0, hide: 100}});
93
+ $('.distribution').tooltip({'title': function() { return find_segment_for(pos.x).label + ' (' + segment.count + ')' }, 'placement': 'bottom', 'trigger': 'manual', 'delay': { show: 0, hide: 100}});
94
94
 
95
95
  last_segment = segment;
96
96
  }
@@ -116,9 +116,11 @@ jQuery(document).ready(function($) {
116
116
  form.find("input.range_begin").val(from);
117
117
  form.find("input.range_end").val(to);
118
118
 
119
- var slider_container = $(container).closest(".limit_content").find(".profile .range");
120
- slider_container.slider("values", 0, from);
121
- slider_container.slider("values", 1, to+1);
119
+ var slider_container = $(container).closest(".limit_content").find(".profile .range");
120
+ $(document).ready(function() {
121
+ slider_container.slider("values", 0, from);
122
+ slider_container.slider("values", 1, to+1);
123
+ });
122
124
  }
123
125
  });
124
126
 
@@ -139,8 +141,11 @@ jQuery(document).ready(function($) {
139
141
  slider_container.css('margin-right', 'auto');
140
142
  slider_container.css('margin-left', 'auto');
141
143
  // And set slider min/max to match charts, for sure
142
- slider_container.slider("option", "min", min);
143
- slider_container.slider("option", "max", max+1);
144
+ $(document).ready(function() {
145
+ slider_container.slider("option", "min", min);
146
+ slider_container.slider("option", "max", max+1);
147
+ });
148
+
144
149
  }
145
150
  }
146
151
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight_range_limit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-30 00:00:00.000000000 Z
12
+ date: 2013-01-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -216,21 +216,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
216
216
  - - ! '>='
217
217
  - !ruby/object:Gem::Version
218
218
  version: '0'
219
- segments:
220
- - 0
221
- hash: 3476430406534618732
222
219
  required_rubygems_version: !ruby/object:Gem::Requirement
223
220
  none: false
224
221
  requirements:
225
222
  - - ! '>='
226
223
  - !ruby/object:Gem::Version
227
224
  version: '0'
228
- segments:
229
- - 0
230
- hash: 3476430406534618732
231
225
  requirements: []
232
226
  rubyforge_project: blacklight
233
- rubygems_version: 1.8.23
227
+ rubygems_version: 1.8.24
234
228
  signing_key:
235
229
  specification_version: 3
236
230
  summary: Blacklight Range Limit plugin