1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-27 02:06:52 +00:00
pixelfed/resources/assets/js/components/bookmarkform.js
2018-10-17 12:40:04 -06:00

8 lines
No EOL
226 B
JavaScript
Vendored

$(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});
});
});