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