recordselect 4.0.13 → 4.0.14
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: 0100b104f501f0cb53f9a7e3f00dcdf1b26ce8d30b3e5164b27bce921d664439
|
|
4
|
+
data.tar.gz: 5dabad84d0fd1e4503fae52f5b849ad1b01dc8fd725218cd6edc818ae1ecd7db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c0ebca023d277014a9c8ee81504bda18e58b138e9c76025a94a84c76702c599d92eaed973d94167ba372acc67a9158d92dda55823a65dc011a4613956c14be10
|
|
7
|
+
data.tar.gz: b1c67959d8a54063ce08e4755b49021f298b976c87ab1c347a2aa9bb75fefd639fd0c87ea637000542c565f1cfd3e840431e8962cf43d3999bc4eb4387777dd0
|
|
@@ -6,6 +6,6 @@ record_select_id = record_select_id(controller)
|
|
|
6
6
|
<%= render_record_select partial: 'search', locals: {controller: controller, record_select_id: record_select_id} %>
|
|
7
7
|
<%= render_record_select partial: 'list', locals: {controller: controller, page: @page, record_select_id: record_select_id} %>
|
|
8
8
|
</div>
|
|
9
|
-
<%= javascript_tag do %>
|
|
9
|
+
<%= javascript_tag nonce: true do %>
|
|
10
10
|
<%= render_record_select(partial: 'highlight', formats: [:js]) %>
|
|
11
11
|
<% end %>
|
|
@@ -5,7 +5,7 @@ module RecordSelectHelper
|
|
|
5
5
|
end
|
|
6
6
|
|
|
7
7
|
def record_select_js(type:, id:, url:, options:)
|
|
8
|
-
javascript_tag("new RecordSelect.#{type}(#{id.to_json}, #{url.to_json}, #{options.to_json});")
|
|
8
|
+
javascript_tag("new RecordSelect.#{type}(#{id.to_json}, #{url.to_json}, #{options.to_json});", nonce: true)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
# Adds a link on the page that toggles a RecordSelect widget from the given controller.
|