Pathologic was missing because of a .git folder inside.
[yaffs-website] / web / modules / contrib / blazy / js / blazy.photobox.js
1 /**
2  * @file
3  * Provides Photobox integration for Image and Media fields.
4  */
5
6 (function ($, Drupal) {
7
8   'use strict';
9
10   Drupal.blazy = Drupal.blazy || {};
11
12   Drupal.behaviors.blazyPhotobox = {
13     attach: function (context) {
14       $('[data-photobox-gallery]', context).once('blazy-photobox').each(function () {
15         $(this).photobox('a[data-photobox-trigger]', {thumb: '> [data-thumb]', thumbAttr: 'data-thumb'}, Drupal.blazy.photobox);
16       });
17     }
18   };
19
20   /**
21    * Callback for custom captions.
22    */
23   Drupal.blazy.photobox = function () {
24     var $caption = $(this).next('.litebox-caption');
25
26     if ($caption.length) {
27       $('#pbCaption .title').html($caption.html());
28     }
29   };
30
31 }(jQuery, Drupal));