From b9773de0256507529521720e6551301412f73b6c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 2 Dec 2015 23:04:44 -0500 Subject: [PATCH] Cleanup paperclip icon --- CRM/Case/BAO/Case.php | 2 +- CRM/Core/BAO/File.php | 19 ++++++++++--------- css/civicrm.css | 4 ---- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/CRM/Case/BAO/Case.php b/CRM/Case/BAO/Case.php index 1226a18dbd..854ec01a6a 100644 --- a/CRM/Case/BAO/Case.php +++ b/CRM/Case/BAO/Case.php @@ -1363,7 +1363,7 @@ SELECT case_status.label AS case_status, status_id, civicrm_case_type.title AS c NULL, FALSE ); - $url .= " "; + $url .= " "; } } diff --git a/CRM/Core/BAO/File.php b/CRM/Core/BAO/File.php index d3d9d00736..97210ef52c 100644 --- a/CRM/Core/BAO/File.php +++ b/CRM/Core/BAO/File.php @@ -691,26 +691,27 @@ AND CEF.entity_id = %2"; $currentAttachmentInfo = self::getEntityFile($entityTable, $entityID); foreach ($currentAttachmentInfo as $fileKey => $fileValue) { $fileID = $fileValue['fileID']; - $fileType = $fileValue['mime_type']; if ($fileID) { + $fileType = $fileValue['mime_type']; + $url = $fileValue['url']; + $title = $fileValue['cleanName']; if ($fileType == 'image/jpeg' || $fileType == 'image/pjpeg' || $fileType == 'image/gif' || $fileType == 'image/x-png' || $fileType == 'image/png' ) { - $url = $fileValue['url']; - $alt = $fileValue['cleanName']; $file_url[$fileID] = " - -
+
+ "; - // for non image files } + // for non image files else { - $url = $fileValue['url']; - $alt = $fileValue['cleanName']; - $file_url[$fileID] = "
"; + $file_url[$fileID] = " + + + "; } } } diff --git a/css/civicrm.css b/css/civicrm.css index 56c46d7aa8..0bc5d290d4 100644 --- a/css/civicrm.css +++ b/css/civicrm.css @@ -3789,10 +3789,6 @@ span.crm-status-icon { color: #fff; } -.crm-container .paper-icon { - background-position: -101px -222px;background-image: url("../i/icons/jquery-ui-3E3E3E.gif"); -} - .crm-container .strikethrough { text-decoration: line-through; } -- 2.25.1