Update to remove use of spacer.gif in ordering component
authorBradley Taylor <hello@brad-taylor.co.uk>
Tue, 12 Oct 2021 20:24:02 +0000 (21:24 +0100)
committerBradley Taylor <hello@brad-taylor.co.uk>
Tue, 12 Oct 2021 20:24:02 +0000 (21:24 +0100)
CRM/Utils/Weight.php

index 891db2fa7a92c00d19bdc49e815eb25b1d858f55..345d6b1a80d724fcb7f0db6948efb69d867c2d60 100644 (file)
@@ -400,8 +400,8 @@ class CRM_Utils_Weight {
         $links[] = "<a class=\"crm-weight-arrow\" href=\"{$url}&amp;dst={$prevID}&amp;dir=swap\"><img src=\"{$imageURL}/up.gif\" title=\"$alt\" alt=\"$alt\" class=\"order-icon\"></a>";
       }
       else {
-        $links[] = "<img src=\"{$imageURL}/spacer.gif\" class=\"order-icon\" alt=''>";
-        $links[] = "<img src=\"{$imageURL}/spacer.gif\" class=\"order-icon\" alt=''>";
+        $links[] = "<span class=\"order-icon\"></span>";
+        $links[] = "<span class=\"order-icon\"></span>";
       }
 
       if ($nextID != 0) {
@@ -412,8 +412,8 @@ class CRM_Utils_Weight {
         $links[] = "<a class=\"crm-weight-arrow\" href=\"{$url}&amp;dst={$lastID}&amp;dir=last\"><img src=\"{$imageURL}/last.gif\" title=\"$alt\" alt=\"$alt\" class=\"order-icon\"></a>";
       }
       else {
-        $links[] = "<img src=\"{$imageURL}/spacer.gif\" class=\"order-icon\" alt=''>";
-        $links[] = "<img src=\"{$imageURL}/spacer.gif\" class=\"order-icon\" alt=''>";
+        $links[] = "<span class=\"order-icon\"></span>";
+        $links[] = "<span class=\"order-icon\"></span>";
       }
       $rows[$id]['weight'] = implode('&nbsp;', $links);
     }