Facebook
From Flying Panda, 3 Weeks ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 34
  1. jQuery("a[href$='.jpg'],a[href$='.png'],a[href$='.gif']").each(function(index) {
  2.         if (jQuery(this).attr('no-data-lightbox')) {
  3.           return false;
  4.         }
  5.         if (typeof(jQuery(this).attr('data-lightbox')) === 'undefined') {
  6.           jQuery(this).attr('data-lightbox', 'lightbox');
  7.         }
  8.   });