Commit b3ba55aa authored by frjo's avatar frjo
Browse files

Some efforts to make Colorbox work with Drupal 8 alpha11, bug fix 3.

parent 02f64ee9
......@@ -19,10 +19,6 @@
$('.colorbox', context)
.once('init-colorbox')
.colorbox(settings.colorbox);
$(context).bind('cbox_complete', function () {
Drupal.attachBehaviors('#cboxLoadedContent');
});
}
};
......
......@@ -126,7 +126,7 @@
#cboxClose.cbox-close-plain {
position: absolute;
font-size: 20px;
line-height: 18px;;
line-height: 18px;
text-align: center;
color: rgba(255, 255, 255, 0.7);
background: rgba(0, 0, 0, 0.5);
......
......@@ -8,7 +8,7 @@
// Make all the controls invisible.
$('#cboxCurrent, #cboxSlideshow, #cboxPrevious, #cboxNext', context).addClass('element-invisible');
// Replace "Close" with "×" and show.
$('#cboxClose', context).html('\327').addClass('cbox-close-plain');
$('#cboxClose', context).html('\u00d7').addClass('cbox-close-plain');
// Hide empty title.
if ($('#cboxTitle:empty', context).length == true) {
$('#cboxTitle', context).hide();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment