recordselect 4.0.11 → 4.0.13
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,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1653f353834a1448e1c0429d219f9a44407e238782c5e31b819f3d7987a4d860
|
|
4
|
+
data.tar.gz: b94634eac081ec7afce35dd26dc220c6b460de8cabd45caa3f8beb9fec31db04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0dff9a052e0d076a0effdb2802c2d680db4645e49baa64fb03a9b370dc97eebd7aeaa37f83b7146a0bc6966d335b6c24619f5e565a213a15879184409d81e931
|
|
7
|
+
data.tar.gz: 9363872198eb4d576b3731eac4de6aae5be7454a9d667f3cb314763ec232fa3ecab6919edba86c1fbf61cc026463dc3485675c837bd8d5fdf8316c1f32e91790
|
|
@@ -160,6 +160,12 @@
|
|
|
160
160
|
jQuery(document).on('ajax:beforeSend', 'a.rs-mode', function() {
|
|
161
161
|
jQuery(this).closest('.record-select').find('form input[name="rs_mode"]').val(jQuery(this).data('value'));
|
|
162
162
|
});
|
|
163
|
+
jQuery(document).on('focus', 'input.recordselect', function() {
|
|
164
|
+
jQuery(this).prop('focused', true);
|
|
165
|
+
});
|
|
166
|
+
jQuery(document).on('blur', 'input.recordselect', function() {
|
|
167
|
+
jQuery(this).prop('focused', false);
|
|
168
|
+
});
|
|
163
169
|
});
|
|
164
170
|
|
|
165
171
|
RecordSelect.from_attributes = function(item) {
|
|
@@ -139,7 +139,7 @@ iframe.record-select-mask {
|
|
|
139
139
|
width: 0px;
|
|
140
140
|
height: 16px;
|
|
141
141
|
padding-left: 16px;
|
|
142
|
-
background:
|
|
142
|
+
background: url('record_select/cross.gif') no-repeat 0 0;
|
|
143
143
|
overflow: hidden;
|
|
144
144
|
float: left;
|
|
145
145
|
margin-right: 5px;
|
|
@@ -152,7 +152,7 @@ iframe.record-select-mask {
|
|
|
152
152
|
&.selected {
|
|
153
153
|
background-color: #EFFFEF;
|
|
154
154
|
background-position: right 2px center;
|
|
155
|
-
background-image:
|
|
155
|
+
background-image: url('record_select/accept.png');
|
|
156
156
|
background-repeat: no-repeat;
|
|
157
157
|
padding-right: 20px;
|
|
158
158
|
&:has(~ .clear-input-button) {
|
|
@@ -210,4 +210,4 @@ iframe.record-select-mask {
|
|
|
210
210
|
margin-left: -20px;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
}
|
|
213
|
+
}
|
|
@@ -69,7 +69,7 @@ module RecordSelectHelper
|
|
|
69
69
|
record_select_options.merge! options.delete(:rs) if options[:rs]
|
|
70
70
|
|
|
71
71
|
clear_button = options.delete(:clear_button)
|
|
72
|
-
options
|
|
72
|
+
options[:autocomplete] = 'off'
|
|
73
73
|
url = url_for({action: :browse, controller: controller.controller_path}.merge(params))
|
|
74
74
|
rs_data = {type: 'Single', id: options[:id], url: url, options: record_select_options}
|
|
75
75
|
options[:data] = rs_data.transform_keys { |k| "rs_#{k}" } unless js
|
|
@@ -107,7 +107,7 @@ module RecordSelectHelper
|
|
|
107
107
|
end
|
|
108
108
|
record_select_options.merge! options.delete(:rs) if options[:rs]
|
|
109
109
|
|
|
110
|
-
options
|
|
110
|
+
options[:autocomplete] = 'off'
|
|
111
111
|
url = url_for({action: :browse, controller: controller.controller_path}.merge(params))
|
|
112
112
|
rs_data = {type: 'Autocomplete', id: options[:id], url: url, options: record_select_options}
|
|
113
113
|
options[:data] = rs_data.transform_keys { |k| "rs_#{k}" } unless js
|
|
@@ -143,7 +143,7 @@ module RecordSelectHelper
|
|
|
143
143
|
record_select_options[:current] = current.inject([]) { |memo, record| memo.push({:id => record.id, :label => label_for_field(record, controller)}) }
|
|
144
144
|
record_select_options.merge! options.delete(:rs) if options[:rs]
|
|
145
145
|
|
|
146
|
-
options
|
|
146
|
+
options[:autocomplete] = 'off'
|
|
147
147
|
url = url_for({action: :browse, controller: controller.controller_path}.merge(params))
|
|
148
148
|
rs_data = {type: 'Multiple', id: options[:id], url: url, options: record_select_options}
|
|
149
149
|
options[:data] = rs_data.transform_keys { |k| "rs_#{k}" } unless js
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: recordselect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sergio Cambra
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2026-
|
|
13
|
+
date: 2026-07-15 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: bundler
|
|
@@ -56,7 +56,7 @@ files:
|
|
|
56
56
|
- app/assets/images/record_select/next.gif
|
|
57
57
|
- app/assets/images/record_select/previous.gif
|
|
58
58
|
- app/assets/javascripts/record_select.js
|
|
59
|
-
- app/assets/stylesheets/record_select.
|
|
59
|
+
- app/assets/stylesheets/record_select.scss
|
|
60
60
|
- app/views/record_select/_browse.html.erb
|
|
61
61
|
- app/views/record_select/_highlight.js.erb
|
|
62
62
|
- app/views/record_select/_list.html.erb
|