Projet

Général

Profil

Paste
Télécharger (824 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / addthis / addthis.js @ 384fc62a

1 85ad3d82 Assos Assos
(function ($) {
2
3
  Drupal.behaviors.addthis = {
4
    attach: function(context, settings) {
5 4543c6c7 Assos Assos
6
      // If addthis settings are provided a display is loaded.
7
      if (typeof Drupal.settings.addthis != 'undefined') {
8
9
        if (typeof Drupal.settings.addthis.load_type != 'undefined') {
10
          if (Drupal.settings.addthis.load_type == 'async') {
11
            addthis.init();
12
          }
13
          if (Drupal.settings.addthis.load_type == 'domready') {
14
            $.getScript(
15
              Drupal.settings.addthis.widget_url,
16
              function(data, textStatus) {});
17
          }
18
          // Trigger ready on ajax attach.
19
          if (context != window.document && window.addthis != null) {
20
            window.addthis.ost = 0;
21
            window.addthis.ready();
22
          }
23 85ad3d82 Assos Assos
        }
24
      }
25 4543c6c7 Assos Assos
26 85ad3d82 Assos Assos
    }
27 4543c6c7 Assos Assos
  }
28 85ad3d82 Assos Assos
29
}(jQuery));