Advertisement
Guest User

ajaxCookieList

a guest
Jul 12th, 2017
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         $('a.franchise-pin, a.franchise-favorite-add, a.franchise-close').click(function(e){
  2.             e.preventDefault();
  3.             var cookieAction = $(this).data('action');
  4.             var resourceId = $(this).data('id');
  5.             $.ajax({
  6.                 data: {action: cookieAction, id: resourceId}
  7.             }).done(function(response){
  8.                 $('#favorites .franchise-container.favorites').html($(response).find('#favorites .franchise-container.favorites').html());
  9.                 $('#favorites').modal('show');
  10.             });
  11.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement