ransack_ui 1.2.1 → 1.2.2

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzkyMjgzMzEwNDYwNDI1ODc4ODA2OTYxNWRkMjJjYjhjMTNlOGE4YQ==
4
+ MTM1OTZhOTNhN2Y2Y2NhODdhMzdkMjI5ZjFjODM1YzM2MmI2N2Y3ZA==
5
5
  data.tar.gz: !binary |-
6
- M2MxNjg0OWI3NTZlNGU5MGYyOGIxOGI4NGJjYmU2YTBkMTJmMjk1Zg==
6
+ ZDI3Yjc0OTJhM2E4ODcxODBlMTI1ZWIxODJlODk4MTY3OWFlZmRlZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZDFjYjdlMzZjODYwNDZiNTQ2ZmU0OTk2NjMxYTMzMjY1NTc1M2EyNTgzM2I5
10
- Y2VhMDBkOTcwNDgzYTE2OTVmYTQ2NWI1ZWVhZmIyZWJmMTQxM2U1ODkyYTUx
11
- ZWYzOGRlZjdhYmRmZmZiMjFiNDNjNWQyODQ5MGFjOWJiMTE5ZTU=
9
+ MGYzNGQzNjVmOGFlYzc4Njc5YjA3MDc1M2Q3ZDcyMWI2YWIwZjFjZTk3ODJl
10
+ NzY5Njk1NWZhNmY1YzNmY2ZjYmY1YWQ5YzYzOTVlNzNlNzM3MWFkNmQ4NDdj
11
+ M2NjNTQwMDg0YjE2NjdmOWU1N2Y0NjBlYWRhNjVkMDA3OGVlYjA=
12
12
  data.tar.gz: !binary |-
13
- ZDJlOGRmMmZkZGFiZWQ0MjUxYTkwOTY5MDQ5NzExOTdiNzgzZGY2YWQyODM5
14
- ZmE3NDJlMTczMGU5Y2IzZTU3MTczZTk1NTAyZmNiOWJiZWFhMDI3YTM3MTlj
15
- NTA1NzQ5YjE1ZmY1NTZmNmM4M2UzMDlhMjA5NDNmMmZjNTIyNzg=
13
+ YjAxYzBlNTEyOWM4ZjliODY2OTRhZmU0YzM1Y2NlMTYxZjY1ZGYzZjcyMjU3
14
+ YzIyNWE4ZGQzNzdmNWFkMTFjMmI5MGJlMjViZGYyYmI4ZjdhY2VmZDM4ZGJm
15
+ Nzk0YjAwYjA1OTAwOGNlZmFkMjYxNGM5OTFlOTYwNDY5NmU2MDk=
@@ -171,7 +171,8 @@
171
171
  @destroy_multi_input(multi_input, selected_attribute.val())
172
172
 
173
173
  if p not in no_query_predicates
174
- query_input.show()
174
+ #query_input.show()
175
+ query_input.css('display', '')
175
176
 
176
177
  # Handle association columns with AJAX autocomplete
177
178
  if selected_attribute.data('ajax-url')
@@ -195,7 +196,8 @@
195
196
  unless p in ['eq', 'not_eq'] and selected_attribute.data('ajax-url')
196
197
  unless query_input.is(":visible")
197
198
  query_input.val('')
198
- query_input.show()
199
+ #query_input.show()
200
+ query_input.css('display', '')
199
201
  query_input.parent().find('.ui-datepicker-trigger').show()
200
202
 
201
203
 
@@ -270,9 +272,11 @@
270
272
  setup_multi_query_input: (predicate_el, query_input, multi_id, selected_attribute) ->
271
273
  base_name = predicate_el.attr('name').slice(0, -3) + '[v]'
272
274
  base_id = predicate_el.attr('id').slice(0, -1)
275
+ width = query_input.width() * 2
276
+ width = 200 if width < 10
273
277
  query_input.after(
274
278
  $('<input class="ransack_query_multi" id="' + multi_id + '" ' +
275
- 'style="width:' + (query_input.width() * 2) + 'px;" ' +
279
+ 'style="width:' + width + 'px;" ' +
276
280
  'data-base-name="' + base_name + '" />'))
277
281
 
278
282
  query_select2_id = "#s2id_#{base_id}v_0_value"
@@ -1,3 +1,3 @@
1
1
  module RansackUI
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ransack_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Broadbent
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-14 00:00:00.000000000 Z
11
+ date: 2013-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ransack_chronic