- 🇮🇳India arif.zisu Kolkata
Below code fix issue for me
diff --git a/docroot/sites/all/modules/colorbox/js/colorbox.js b/docroot/sites/all/modules/colorbox/js/colorbox.js
index cd7cf55e..f1d5cae1 100644
--- a/docroot/sites/all/modules/colorbox/js/colorbox.js
+++ b/docroot/sites/all/modules/colorbox/js/colorbox.js
@@ -33,15 +33,19 @@ Drupal.behaviors.initColorbox = {
.once('init-colorbox').each(function(){
// Only images are supported for the "colorbox" class.
// The "photo" setting forces the href attribute to be treated as an image.
- var extendParams = {
- photo: true
- };
- // If a title attribute is supplied, sanitize it.
- var title = $(this).attr('title');
- if (title) {
- extendParams.title = Drupal.colorbox.sanitizeMarkup(title);
+ if ($(this).hasClass('embed-video')) {
+ $(this).colorbox(settings.colorbox);
+ } else {
+ var extendParams = {
+ photo: true
+ };
+ // If a title attribute is supplied, sanitize it.
+ var title = $(this).attr('title');
+ if (title) {
+ extendParams.title = Drupal.colorbox.sanitizeMarkup(title);
+ }
+ $(this).colorbox($.extend({}, settings.colorbox, extendParams));
}
- $(this).colorbox($.extend({}, settings.colorbox, extendParams));
});$(context).bind('cbox_complete', function () {
diff --git a/docroot/sites/all/modules/video_embed_field/video_embed_field.module b/docroot/sites/all/modules/video_embed_field/video_embed_field.module
index 7e9bedd5..81e79736 100644
--- a/docroot/sites/all/modules/video_embed_field/video_embed_field.module
+++ b/docroot/sites/all/modules/video_embed_field/video_embed_field.module
@@ -555,7 +555,8 @@ function video_embed_field_get_ajax_url($video_url, $video_style) {
'attributes' => array(
'class' => array(
'colorbox-load',
- 'colorbox'
+ 'colorbox',
+ 'embed-video'
),
),
'query' => array(