1234567891011121314151617181920 |
- (function ($) {
- Drupal.behaviors.initColorbox = {
- attach: function (context, settings) {
- if (!$.isFunction($.colorbox)) {
- return;
- }
- $('.colorbox', context)
- .once('init-colorbox')
- .colorbox(settings.colorbox);
- }
- };
- {
- $(document).bind('cbox_complete', function () {
- Drupal.attachBehaviors('#cboxLoadedContent');
- });
- }
- })(jQuery);
|