blacklight-spotlight 0.28.2 → 0.28.3

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
  SHA1:
3
- metadata.gz: e57863575f59657b4c10cac8c1d0541df9d4f595
4
- data.tar.gz: ff5822ee18aa552633c2bd7c996fab0fba2e0693
3
+ metadata.gz: 625069d3eba47b6df04aa573f4a2f4d2b4406eb1
4
+ data.tar.gz: 4ae2f236b798ba61c33b72b47ed92aa056db553e
5
5
  SHA512:
6
- metadata.gz: 22cfb2f247035b11964b73429b82bd41210a21b737b6fe07311c357a30766b8a7de9d9c4d8cdce0fb86db9de3559691788b65fcc38ea7db392b3bad6be1d9bd6
7
- data.tar.gz: 37b65199e3a1f61ef96f2f6fb6f08a74d1d6dbdf110e79fca2bcaf845ab3661eb646d5dd040d347764d10a15ab063af66af4f3b44c1b7b9c20b01a53932f6fbf
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
 
@@ -55,6 +55,8 @@
55
55
 
56
56
  form.edit_solr_document {
57
57
  .bootstrap-tagsinput {
58
+ @extend .clearfix;
59
+ cursor: text;
58
60
  display: block;
59
61
  }
60
62
  .bg-warning.help-block {
@@ -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.exhibit_attachments_url(@page.exhibit),
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"),
@@ -1,3 +1,3 @@
1
1
  module Spotlight
2
- VERSION = '0.28.2'.freeze
2
+ VERSION = '0.28.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-spotlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.2
4
+ version: 0.28.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer