We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc2495f commit d7f063dCopy full SHA for d7f063d
app/javascript/spotlight/admin/blocks/solr_documents_embed_block.js
@@ -1,15 +1,15 @@
1
-SirTrevor.Blocks.SolrDocumentsEmbed = (function(){
2
-
+SirTrevor.Blocks.SolrDocumentsEmbed = (function () {
3
return SirTrevor.Blocks.SolrDocumentsBase.extend({
4
type: "solr_documents_embed",
5
icon_name: "item_embed",
6
show_image_selection: false,
7
8
- item_options: function() { return "" },
+ item_options: function () {
+ return ""
9
+ },
10
- afterPreviewLoad: function(options) {
11
- $(this.inner).find('picture[data-openseadragon]').openseadragon();
+ afterPreviewLoad: function (options) {
12
+ this.inner.querySelector("picture[data-openseadragon]").openseadragon()
13
}
- });
14
15
-})();
+ })
+})()
0 commit comments