File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,9 @@ $(document).ready(function() {
105
105
106
106
functionBefore: function(instance, helper) {
107
107
var $origin = $(helper.origin);
108
- var url = $origin.data('url');
108
+ // TODO: we are failing on some elements to set the URL from the
109
+ // backend, but we can use `href` instead.
110
+ var url = $origin.data('url') || $origin.prop('href');
109
111
110
112
111
113
// we set a variable so the data is only loaded once via Ajax, not every time the tooltip opens
@@ -174,7 +176,9 @@ $(document).ready(function() {
174
176
{% endif %}
175
177
176
178
function showModal(element) {
177
- var url = element.data('url');
179
+ // TODO: we are failing on some elements to set the URL from the
180
+ // backend, but we can use `href` instead.
181
+ var url = element.data('url') || element.prop('href');
178
182
var url = getEmbedURL(url);
179
183
$.get(url, function(data) {
180
184
var content = $('<div></div>');
You can’t perform that action at this time.
0 commit comments