Commit 6884286f authored by NickWilde's avatar NickWilde

Issue #2942435 by code-brighton, NickWilde, RenatoG: Display none Div not...

Issue #2942435 by code-brighton, NickWilde, RenatoG: Display none Div not working with inline colorbox
parent 380d245b
......@@ -16,11 +16,22 @@
href: data.colorboxInline,
width: data.width,
height: data.height,
rel: data.rel
rel: data.rel,
open: false
});
// Hide the colorbox source after if it was hidden before use.
if (!$(settings.href).filter(':visible')[0]) {
settings.onClosed = function($link) {
$($link.cache.href).hide();
}
}
$link.colorbox(settings);
$link.colorbox.close();
$link.click(function () { $(this).colorbox();});
$link.click(function () {
$($(this).data('colorboxInline')).show();
$(this).colorbox();
});
});
}
};
......
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