Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- eraseStatus();
- });
- function eraseStatus() {
- var status = $('.item_status');
- var myName = $('.about-author_main').find('.about-author_name').html().trim();
- status.each(function() {
- var id = $(this).closest('.listing_item').find('.rating_link').attr('data-id');
- $.ajax({ method: 'post', url : '/ajax/status/delete/', data : { 'id' : id } })
- });
- window.location = 'http://birdz.sk/' + myName + '/statusy/list/';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement