Permalink
Browse files

Removed unnecessary hide JS from Lightbox since now handled with CSS …

…only.
  • Loading branch information...
pjackson28 committed Feb 13, 2013
1 parent f9223dd commit fd2c3d00cd29a57f6e436d3eeb5823f836ff28c0
Showing with 9 additions and 4 deletions.
  1. +9 −4 src/js/workers/lightbox.js
View
@@ -47,8 +47,6 @@
onLoad : function () {
var $lbTitle = $lbContent.find('#cboxTitle'),
$lbCurrent = $lbTitle.next();
$lbTitle.addClass('wb-hide');
$lbCurrent.addClass('wb-hide');
},
onComplete : function () {
var $lbTitle = $lbContent.find('#cboxTitle'),
@@ -139,12 +137,19 @@
}
});
}, // end of exec
_init_colorbox : function(link, opts, group) {
var $link = $(link),
isInline = $link.attr('href').substring(0, 1) === '#',
isGroup = (group !== undefined),
groupRel = (isGroup ? group : false);
$link.colorbox((isInline || isGroup) ? $.extend({}, opts, {inline: isInline, rel: groupRel}) : opts);
groupRel = (isGroup ? group : false),
title = this._get_title(link);
$link.colorbox((isInline || isGroup || title) ? $.extend((title ? title : {}), opts, {inline: isInline, rel: groupRel}) : opts);
},
_get_title : function(link) {
var title = document.getElementById(link.getAttribute('data-title'));
return (title && title.innerHTML.length > 0) ? {title: title.innerHTML} : false;
}
};
window.pe = _pe;

0 comments on commit fd2c3d0

Please sign in to comment.