Skip to content

Instantly share code, notes, and snippets.

@fellowgeek
Created October 26, 2015 20:16

Revisions

  1. fellowgeek created this gist Oct 26, 2015.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    $('.btn-landscape').click(function(){
    if( $(this).find('i').hasClass('fa-check') ){ $(this).find('i').removeClass('fa-check'); } else { $(this).find('i').addClass('fa-check'); }
    $.ajax({url:'/w/images/wimages/landscape/?oimage_id='+$(this).attr('data-oimage-id')});
    });