mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 01:12:11 +08:00
removes unused context binding from Discourse.Lightbox
This commit is contained in:
parent
fee2734aaa
commit
b4a6a5e841
@ -7,7 +7,6 @@
|
|||||||
**/
|
**/
|
||||||
Discourse.Lightbox = {
|
Discourse.Lightbox = {
|
||||||
apply: function($elem) {
|
apply: function($elem) {
|
||||||
var _this = this;
|
|
||||||
$LAB.script("/javascripts/jquery.magnific-popup-min.js").wait(function() {
|
$LAB.script("/javascripts/jquery.magnific-popup-min.js").wait(function() {
|
||||||
$('a.lightbox', $elem).each(function(i, e) {
|
$('a.lightbox', $elem).each(function(i, e) {
|
||||||
$(e).magnificPopup({ type: 'image', closeOnContentClick: true });
|
$(e).magnificPopup({ type: 'image', closeOnContentClick: true });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user