]> _ Git - cubeextranet.git/commitdiff
wait #4232 @0.25
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 28 Jan 2021 15:20:34 +0000 (15:20 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 28 Jan 2021 15:20:34 +0000 (15:20 +0000)
inc/ws/Util/html5/master/class.ws.html5.links.php

index fca24f5a133dea50d172787274177de5b182b699..c1f279ef9e02543e8f99692e7a215633d8fbcdc1 100644 (file)
@@ -467,6 +467,10 @@ class wsHTML5Link
         if ($this->maxWidth > 0) {
             $res .= ' data-max-width="' . $this->maxWidth . '"';
         }
+        if (!isset($this->popupClose)) {
+            $this->popupClose = 1;
+        }
+        $res .= ' data-popup-close="' . $this->popupClose . '"';
         if ($this->tooltipBackgroundColor) {
             $res .= 'data-tooltip-background="' . $this->tooltipBackgroundColor . '" ';
         }
@@ -858,7 +862,7 @@ class htmlMultimediaPopupImage extends normalLink
     {
         $this->copyExternalFile($this->alternative);
         $read = ($this->read_mode) ? 'r_' : '';
-        return '#/multimedia/' . $read . md5($this->alternative);
+        return '#/multimedia/' . $read . md5($this->alternative . '/' . $this->extra.'/'.$this->id);
     }
 
     public function getAdditionnalContent()