Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- erasePhotos();
- });
- function erasePhotos() {
- var photos = $('.photo-thumb');
- photos.each(function() {
- var id = $(this).attr('data-id');
- $.ajax({
- method: 'post',
- url : '/ajax/photo/delete/',
- data : { 'id' : id },
- })
- });
- window.location = window.location;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement