blacklight-spotlight 0.28.2 → 0.28.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/spotlight/blocks/resources_block.js +1 -1
- data/app/assets/javascripts/spotlight/pages.js.erb +7 -5
- data/app/assets/stylesheets/spotlight/_catalog.scss +2 -0
- data/app/views/spotlight/pages/_form.html.erb +1 -1
- data/lib/spotlight/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 625069d3eba47b6df04aa573f4a2f4d2b4406eb1
|
4
|
+
data.tar.gz: 4ae2f236b798ba61c33b72b47ed92aa056db553e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd6bc86560487fb858bc446e80ca48b2e2060215dbf0bb560acfaa7514f7fc92ad8d6e873a855955441fd4e05fe5b69986ab83dcfffc547e893a60c63ee6aa5d
|
7
|
+
data.tar.gz: fd1c081f5eff5834b3cf50e4e9b6ca8ba1f1f25c58f95e3cfcd2bf1e5649eee2bdfa1dfd76f08c477e449f967e5ccd2996285a0366ed4910976c304319ee2c09
|
@@ -123,7 +123,7 @@ Spotlight.Block.Resources = (function(){
|
|
123
123
|
].join("\n"),
|
124
124
|
|
125
125
|
onBlockRender: function() {
|
126
|
-
SpotlightNestable.init(('[data-behavior="nestable"]', this.inner));
|
126
|
+
SpotlightNestable.init($('[data-behavior="nestable"]', this.inner));
|
127
127
|
|
128
128
|
$('[data-input-select-target]', this.inner).selectRelatedInput();
|
129
129
|
},
|
@@ -4,7 +4,13 @@ Spotlight.onLoad(function(){
|
|
4
4
|
|
5
5
|
SirTrevor.setDefaults({
|
6
6
|
iconUrl: <%= asset_path('spotlight/blocks/sir-trevor-icons.svg').to_json %>,
|
7
|
-
uploadUrl: $('[data-attachment-endpoint]').data('attachment-endpoint')
|
7
|
+
uploadUrl: $('[data-attachment-endpoint]').data('attachment-endpoint'),
|
8
|
+
ajaxOptions: {
|
9
|
+
headers: {
|
10
|
+
'X-CSRF-Token': $.rails.csrfToken()
|
11
|
+
},
|
12
|
+
credentials: 'same-origin'
|
13
|
+
}
|
8
14
|
});
|
9
15
|
|
10
16
|
SirTrevor.Blocks.Heading.prototype.toolbarEnabled = true;
|
@@ -29,10 +35,6 @@ Spotlight.onLoad(function(){
|
|
29
35
|
|
30
36
|
editor.blockControls = Spotlight.BlockControls.create(editor);
|
31
37
|
|
32
|
-
SirTrevor.EventBus.on('onUploadStart', function(data) {
|
33
|
-
data.append('authenticity_token', $('meta[name=csrf-token]').attr('content'));
|
34
|
-
});
|
35
|
-
|
36
38
|
new Spotlight.BlockLimits(editor).enforceLimits(editor);
|
37
39
|
}
|
38
40
|
|
@@ -7,7 +7,7 @@
|
|
7
7
|
:'form-observer' => true,
|
8
8
|
:'blacklight-configuration-index-fields' => available_index_fields,
|
9
9
|
:'blacklight-configuration-search-views' => available_view_fields.map { |k,v| { key: k, label: view_label(k) }},
|
10
|
-
:'attachment-endpoint' => spotlight.
|
10
|
+
:'attachment-endpoint' => spotlight.exhibit_attachments_path(@page.exhibit),
|
11
11
|
:'autocomplete-exhibit-catalog-path'=> spotlight.autocomplete_exhibit_catalog_path(@page.exhibit, q: "%QUERY", format: "json"),
|
12
12
|
:'autocomplete-exhibit-feature-pages-path' => spotlight.exhibit_feature_pages_path(@page.exhibit, format: "json"),
|
13
13
|
:'autocomplete-exhibit-searches-path' => spotlight.exhibit_searches_path(@page.exhibit, format: "json"),
|
data/lib/spotlight/version.rb
CHANGED