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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55bfa11e6486386f1dbb2ad78abd80f10dcd198c799e87a2e5af08dfbf3312bd
|
|
4
|
+
data.tar.gz: 02d635c2dc8a68b6c1139c1398cf06ddcd9831193ca384116a7f70770463d615
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 (
|
|
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 (
|
|
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
|
data/lib/spotlight/version.rb
CHANGED
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.
|
|
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-
|
|
14
|
+
date: 2019-03-12 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: rails
|