1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-28 10:46:49 +00:00
pixelfed/resources/assets/js/components/bookmarkform.js
2018-05-31 15:56:46 -06:00

9 lines
No EOL
211 B
JavaScript
Vendored

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