1
0
Fork 0
pixelfed/resources/assets/js/components/bookmarkform.js

8 lines
226 B
JavaScript

$(document).ready(function() {
$(document).on('submit', '.bookmark-form', function(e) {
e.preventDefault();
var el = $(this);
var id = el.data('id');
var res = axios.post('/i/bookmark', {item: id});
});
});