Closed JaimieMurdock closed 10 years ago
For the Import LODE button add a data-url="${c.entity.url(action='query_lode')}"
to the template in /templates/entity/entity.html
, and then in the click function:
$('#rdfselection').click(function () {
var url = $(this).attr('data-url');
$.get(url, function(rdfdata) {
...
});
});
the $(this).attr('data-url')
will get the right url then
Issue resolved!!!
/templates/entity/entity.html
line 79-ish after the for loop. The code should be the same as the searchpatterns suggestion code on lines 118-134, with the id attribute on the modal changed tordfdata
. The link will have<a data-toggle="modal" href="#rdfdata">
. This should instantly show up on the admin panel of all entities./public/js/admin.js