Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit c8d8016

Browse files
committed
Use element.href if data-url is not present
1 parent 56beaf4 commit c8d8016

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hoverxref/_static/js/hoverxref.js_t

+3-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ $(document).ready(function() {
174174
{% endif %}
175175

176176
function showModal(element) {
177-
var url = element.data('url');
177+
// TODO: we are failing on some elements to set the URL from the
178+
// backend, but we can use `href` instead.
179+
var url = element.data('url') || element.prop('href');
178180
var url = getEmbedURL(url);
179181
$.get(url, function(data) {
180182
var content = $('<div></div>');

0 commit comments

Comments
 (0)