1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-28 02:36:50 +00:00
pixelfed/resources/assets/js/components/bookmarkform.js

8 lines
226 B
JavaScript
Raw Normal View History

2018-05-31 21:56:46 +00:00
$(document).ready(function() {
2018-10-17 18:40:04 +00:00
$(document).on('submit', '.bookmark-form', function(e) {
2018-05-31 21:56:46 +00:00
e.preventDefault();
var el = $(this);
var id = el.data('id');
var res = axios.post('/i/bookmark', {item: id});
});
});