From b197b6297b96b896161eab44fc7aa947f6df998f Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 28 Oct 2018 17:18:47 +0100 Subject: [PATCH] added lightbox --- lam/lib/modules/inetOrgPerson.inc | 2 ++ lam/lib/modules/windowsUser.inc | 1 + 2 files changed, 3 insertions(+) diff --git a/lam/lib/modules/inetOrgPerson.inc b/lam/lib/modules/inetOrgPerson.inc index f4147c03..04218faa 100644 --- a/lam/lib/modules/inetOrgPerson.inc +++ b/lam/lib/modules/inetOrgPerson.inc @@ -1616,6 +1616,7 @@ class inetOrgPerson extends baseModule implements passwordService { } $img = new htmlImage($photoFile); $img->setCSSClasses(array('photo')); + $img->enableLightbox(); $imageContainer->addElement($img, true); if (!$this->isAdminReadOnly('jpegPhoto')) { if ($noPhoto) { @@ -2985,6 +2986,7 @@ class inetOrgPerson extends baseModule implements passwordService { $photoFile = '../../tmp/' . $jpeg_filename; $img = new htmlImage($photoFile); $img->setCSSClasses(array('photo')); + $img->enableLightbox(); if ($crop) { $img->enableCropping(); } diff --git a/lam/lib/modules/windowsUser.inc b/lam/lib/modules/windowsUser.inc index 11ad3f49..2990676e 100644 --- a/lam/lib/modules/windowsUser.inc +++ b/lam/lib/modules/windowsUser.inc @@ -1288,6 +1288,7 @@ class windowsUser extends baseModule implements passwordService { } $img = new htmlImage($photoFile); $img->setCSSClasses(array('photo')); + $img->enableLightbox(); $imageContainer->addElement($img, true); if ($noPhoto) { $imageContainer->addElement(new htmlAccountPageButton(get_class($this), 'photo', 'open', _('Add photo')));