This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/components/lightbox.js

24 lines
428 B
JavaScript

/* Helper object for light boxes. Uses highlight.js which is loaded
*/
/* on demand.
*/
(function() {
window.Discourse.Lightbox = {
apply: function($elem) {
var _this = this;
return jQuery('a.lightbox', $elem).each(function(i, e) {
return $LAB.script("/javascripts/jquery.colorbox-min.js").wait(function() {
return jQuery(e).colorbox();
});
});
}
};
}).call(this);