Просмотр исходного кода

AMBARI-265. Reconfig page close button (x) is not visible (Contributed by Vinod)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/branches/ambari-186@1347016 13f79535-47bb-0310-9956-ffa450edef68
Vikram Dixit K 13 лет назад
Родитель
Сommit
3ab4d87555
2 измененных файлов с 13 добавлено и 3 удалено
  1. 2 0
      CHANGES.txt
  2. 11 3
      hmc/js/utils.js

+ 2 - 0
CHANGES.txt

@@ -6,6 +6,8 @@ characters wide.
 
 Release 0.1.x - unreleased
 
+  AMBARI-265. Reconfig page close button (x) is not visible (Vinod via Vikram)
+
   AMBARI-357. Redesign master service assignment page so that it takes up less vertical space (Yusaku via Vikram)
 
   AMBARI-356. Log output to console slows puppet run. (Jitendra via Vikram)

+ 11 - 3
hmc/js/utils.js

@@ -73,9 +73,17 @@ function createInformationalPanel( containerNodeId, headerContentString ) {
       fontSize: '150%'
     });
 
-    globalYui.StyleSheet('KewlApp').set( '.yui3-skin-sam .yui3-panel-content .yui3-button-icon', {
-      backgroundColor: 'white',
-      border: 'medium solid gray'
+    globalYui.StyleSheet('KewlApp').set( '.yui3-skin-sam .yui3-panel .yui3-widget-hd .yui3-button-close', {
+        border: 'medium solid gray',
+        backgroundColor: 'white',
+        height: '17px',
+        width: '20px',
+    });
+
+    // Temporary fix to a yui bug
+    globalYui.StyleSheet('KewlApp').set( '.yui3-skin-sam .yui3-panel .yui3-widget-hd .yui3-button-close:before', {
+        content: 'url(../yui-3.5.1/build/assets/skins/sam/sprite_icons.png)',
+        backgroundImage: 'url(../yui-3.5.1/build/assets/skins/sam/sprite_icons.png)',
     });
 
     globalYui.StyleSheet('KewlApp').set( '.yui3-skin-sam .yui3-panel-content .yui3-widget-ft', {