From 5bb588f9dac320ba16f1d08634e2a26a8dd895a2 Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 21 Mar 2011 23:51:13 +0000 Subject: Refs #2882 basic lightbox git-svn-id: http://code.elgg.org/elgg/trunk@8808 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/js/lightbox.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 views/default/js/lightbox.php (limited to 'views/default/js/lightbox.php') diff --git a/views/default/js/lightbox.php b/views/default/js/lightbox.php new file mode 100644 index 000000000..5f3764756 --- /dev/null +++ b/views/default/js/lightbox.php @@ -0,0 +1,30 @@ + + +/** + * Lightbox initialization + */ +elgg.ui.lightbox_init = function() { + $(".elgg-lightbox").fancybox(); +} + +elgg.register_hook_handler('init', 'system', elgg.ui.lightbox_init); + +