diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 5e7b0040f..e99de8dbf 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -36,7 +36,6 @@ //= require nested_related_items //= require openseadragon //= require spotlight -//= require sul-exhibits-template //= require table_of_contents //= require custom-file-input //= require site_search_type_toggle diff --git a/app/assets/javascripts/sul-exhibits-template.js.erb b/app/assets/javascripts/sul-exhibits-template.js.erb deleted file mode 100644 index 2f810507d..000000000 --- a/app/assets/javascripts/sul-exhibits-template.js.erb +++ /dev/null @@ -1,16 +0,0 @@ -Spotlight.onLoad(function(){ - $("[data-find-this-item]").each(function(){ - var container = $(this) - var url = container.data('find-this-item'); - var collection_target = $("[data-find-this-item-collection]", container) - $.ajax({ accepts: "json", url: url }).success(function(data){ - if ( !data.error ) { - var collection = data.collection; - if ( collection ) { - collection_target.append('