]> _ Git - cubeextranet.git/commitdiff
WIP #2087 @0.5
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 24 Sep 2018 15:13:04 +0000 (15:13 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 24 Sep 2018 15:13:04 +0000 (15:13 +0000)
inc/ws/Util/html5/zoom-groups/class.ws.html5.links.php

index 69a477cc02ba0b0d87a7ee82acc3bf5791e1d7fe..f53386c0761e0f99b8d7afd89d3ded14a7886a90 100644 (file)
@@ -1450,7 +1450,17 @@ class zoomLink extends normalLink
 
        public function getHTMLContainerClass()
        {
-               return parent::getHTMLContainerClass() . ' zoomarea';
+           $class = ' zoomarea';
+
+        $groups = explode(',', $this->group);
+
+        // If there's more than one group assigned, this link shouldn't be clickable (disabled via CSS)
+        // This needs to be set here (parent element) instead of on the actual link so we don't end up with a dead zone
+        if (count($groups) > 1) {
+            $class .= ' pointer-events-none';
+        }
+
+           return parent::getHTMLContainerClass() . $class;
        }
 
        public function getDefaultTooltip()