blacklight-spotlight 2.4.0 → 2.4.1

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: 4590fbda9990663841c1c207c0b30d85c78f5bd8c0f334cd7095d7f4c1790204
4
- data.tar.gz: 92babceecf344f8070106c2d246c49b3b041d2bfa8cb533fe974e47b07d0319f
3
+ metadata.gz: 55bfa11e6486386f1dbb2ad78abd80f10dcd198c799e87a2e5af08dfbf3312bd
4
+ data.tar.gz: 02d635c2dc8a68b6c1139c1398cf06ddcd9831193ca384116a7f70770463d615
5
5
  SHA512:
6
- metadata.gz: 13732cde141a4a6acebdaa35c2587d06d006f667c8f634898a97cb3c11636b7ca0c56eab7035ffdbc72660d5f9761e4326cd694aa0e63b626a885ba9f944b2b2
7
- data.tar.gz: 6760e833d1a15f00fcf1903245c0016ab34822b5e32cd6017b8618192515f0a38a042870e8068de84aab531500ae4269d211a2806dbbf8a9761fac9c2e67c48c
6
+ metadata.gz: 432700fc757ab4f53bdb8a90f70a1534f8a780015403091c4f0fbd80e0a832f86c9a1f0ab9e648bbddd2531633524e04de928f09babce038df077eb57d08f22f
7
+ data.tar.gz: 4a6d8881fa542b2487a38cb297dad0e073f705a543be53bc523f291176a9eb8f50ecc1b2392512e9243ed35de9e00c49738682e5d047393329f44b7417bbac2f
@@ -36,10 +36,10 @@ Spotlight.onLoad(function() {
36
36
  //css_class is added to elements added, plus used for id base
37
37
  css_class: "toggle_visibility",
38
38
  //success is called at the end of the ajax success callback
39
- success: function (public){
39
+ success: function (isPublic){
40
40
  // We store the selector of the label to toggle in a data attribute in the form
41
41
  var docTarget = $($(this).data("label-toggle-target"));
42
- if ( public ) {
42
+ if ( isPublic ) {
43
43
  docTarget.removeClass("blacklight-private");
44
44
  } else {
45
45
  docTarget.addClass("blacklight-private");
@@ -4,7 +4,7 @@ module Spotlight
4
4
  ##
5
5
  # Exhibit-specific resources, created using uploaded and custom fields
6
6
  class Upload < Spotlight::Resource
7
- belongs_to :upload, class_name: 'Spotlight::FeaturedImage', optional: true
7
+ belongs_to :upload, class_name: 'Spotlight::FeaturedImage', optional: true, validate: true
8
8
 
9
9
  # we want to do this before reindexing
10
10
  after_create :update_document_sidecar
@@ -1,3 +1,3 @@
1
1
  module Spotlight
2
- VERSION = '2.4.0'.freeze
2
+ VERSION = '2.4.1'.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: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-03-11 00:00:00.000000000 Z
14
+ date: 2019-03-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails