Commit 10e46a04f46a4bb581e0bc6b61ede788b79beb7f

Authored by Megan Watson
1 parent e1e46e9d

Moved the thumbnail out of the div with the onclick href.

Jira: KTC-865
PT: 1817265

Committed by: Megan Watson
plugins/ktstandard/documentpreview/documentPreview.php
@@ -176,7 +176,11 @@ class DocumentPreview { @@ -176,7 +176,11 @@ class DocumentPreview {
176 176
177 $sInfo = $this->getMetadata(); 177 $sInfo = $this->getMetadata();
178 178
179 - return '<div id="preview" class="preview" onclick="javascript: destroyPanel();">'.$sInfo.'</div>'; 179 + $sInfo = '<div id="preview" class="preview" onclick="javascript: destroyPanel();">'.$sInfo.'</div>';
  180 +
  181 + $sInfo .= $this->getThumbnail();
  182 +
  183 + return $sInfo;
180 } 184 }
181 185
182 /** 186 /**
@@ -280,8 +284,6 @@ class DocumentPreview { @@ -280,8 +284,6 @@ class DocumentPreview {
280 $sInfo .= "<tr><td>{$sIdLb}</td><td><b>{$sId}</b></td></tr>"; 284 $sInfo .= "<tr><td>{$sIdLb}</td><td><b>{$sId}</b></td></tr>";
281 $sInfo .= " </table></div>"; 285 $sInfo .= " </table></div>";
282 286
283 - $sInfo .= $this->getThumbnail();  
284 -  
285 return $sInfo; 287 return $sInfo;
286 } 288 }
287 289