From 929b978eb380757d7affdfa972ad802542a43e4b Mon Sep 17 00:00:00 2001
From: James Elliott <james.elliott@acquia.com>
Date: Fri, 8 Apr 2011 15:03:09 -0400
Subject: [PATCH] [#1070682] New content preview fails when media file attached, buttons.png not found.

---
 css/media.css |   17 -----------------
 media.module  |    2 +-
 2 files changed, 1 insertions(+), 18 deletions(-)

diff --git a/css/media.css b/css/media.css
index 8cfad81..6734829 100644
--- a/css/media.css
+++ b/css/media.css
@@ -78,23 +78,6 @@
   display:none;
 }
 
-.media-widget a.launcher,
-.media-widget a.remove {
-  -moz-border-radius: 20px 20px 20px 20px;
-  background: url("../images/buttons.png") repeat-x scroll 0 0 transparent;
-  border-color: #E4E4E4 #D2D2D2 #B4B4B4;
-  border-style: solid;
-  border-width: 1px;
-  color: #5A5A5A;
-  cursor: pointer;
-  font-family: "Lucida Grande",Verdana,sans-serif;
-  font-size: 1.1em;
-  font-weight: normal;
-  margin-bottom: 1em;
-  padding: 4px 17px;
-  text-align: center;
-}
-
 .media-widget a.remove {
   margin-left: 15px;
   display: none;
diff --git a/media.module b/media.module
index 9c804b9..a697d66 100644
--- a/media.module
+++ b/media.module
@@ -1030,7 +1030,7 @@ function media_element_process(&$element, &$form_state, $form) {
     '#type' => 'item',
     '#markup' => $markup,
     '#prefix' => '<div class="preview launcher">',
-    '#suffix' => '</div><a class="launcher" href="#">' . t(media_variable_get('field_select_media_text')) . '</a><a class="remove" href="#">' . t(media_variable_get('field_remove_media_text')) . '</a>',
+    '#suffix' => '</div><a class="button launcher" href="#">' . t(media_variable_get('field_select_media_text')) . '</a><a class="button remove" href="#">' . t(media_variable_get('field_remove_media_text')) . '</a>',
   );
 
   /**
-- 
1.7.4.msysgit.0

