Skip to content

Commit d7f063d

Browse files
committed
Use the Dom based openseadragon function
Rather than depending on jquery
1 parent bc2495f commit d7f063d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
SirTrevor.Blocks.SolrDocumentsEmbed = (function(){
2-
1+
SirTrevor.Blocks.SolrDocumentsEmbed = (function () {
32
return SirTrevor.Blocks.SolrDocumentsBase.extend({
43
type: "solr_documents_embed",
54
icon_name: "item_embed",
65
show_image_selection: false,
76

8-
item_options: function() { return "" },
7+
item_options: function () {
8+
return ""
9+
},
910

10-
afterPreviewLoad: function(options) {
11-
$(this.inner).find('picture[data-openseadragon]').openseadragon();
11+
afterPreviewLoad: function (options) {
12+
this.inner.querySelector("picture[data-openseadragon]").openseadragon()
1213
}
13-
});
14-
15-
})();
14+
})
15+
})()

0 commit comments

Comments
 (0)