record_collection 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1221e77bb333dddfa1f9d2cfb8d6dae31aa3ef7f
|
4
|
+
data.tar.gz: d532989e28726b95921beb9450679af4003a8a10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11d725ea89a210e0486a91a3e5e47b9c1a2aecc1ef539bf95f25ed5cf8d5710436761a4c4a2d18890d808b38ab8eea6787c4c48867dcfed2b7ce046599524580
|
7
|
+
data.tar.gz: 37602afb6e7d8efa2c5ccbdd06b42367ca44b06929bc4f1e48b5f989ba374e936d805c9af17fea56a6f17980b64b3014e68f9869294c8daab38a143798d33a31
|
@@ -62,6 +62,7 @@ class Optionals
|
|
62
62
|
value_field = container.find('select,input')
|
63
63
|
# INITIAL STATE IS DISABLED, Activation by triggering click if needed
|
64
64
|
value_field.attr 'name', "disabled_#{value_field.attr('name')}"
|
65
|
+
container.addClass('inactive')
|
65
66
|
|
66
67
|
label_text = container.find('label').text()
|
67
68
|
|
@@ -75,11 +76,11 @@ class Optionals
|
|
75
76
|
if activator_container.hasClass('active')
|
76
77
|
value_field.attr 'name', value_field.attr('name').replace(/^disabled_/, '')
|
77
78
|
#value_toggle.show()
|
78
|
-
container.removeClass('inactive')
|
79
|
+
container.addClass('active').removeClass('inactive')
|
79
80
|
else
|
80
81
|
value_field.attr 'name', "disabled_#{value_field.attr('name')}"
|
81
82
|
#value_toggle.hide()
|
82
|
-
container.addClass('inactive')
|
83
|
+
container.removeClass('active').addClass('inactive')
|
83
84
|
activator_label = $('<span></span>').addClass('optional-input-activator-label').text label_text
|
84
85
|
activator_container.append activator_toggle
|
85
86
|
activator_container.append activator_label
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: record_collection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin ter Kuile
|
@@ -433,7 +433,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
433
433
|
version: '0'
|
434
434
|
requirements: []
|
435
435
|
rubyforge_project:
|
436
|
-
rubygems_version: 2.4.
|
436
|
+
rubygems_version: 2.4.6
|
437
437
|
signing_key:
|
438
438
|
specification_version: 4
|
439
439
|
summary: Manage collections of records in Ruby on Rails
|
@@ -512,4 +512,3 @@ test_files:
|
|
512
512
|
- spec/rails/form_builder_spec.rb
|
513
513
|
- spec/record_selection/base_spec.rb
|
514
514
|
- spec/spec_helper.rb
|
515
|
-
has_rdoc:
|