Permalink
Browse files

Adding button icon for removing friend from hidden list. not active.

  • Loading branch information...
1 parent ae29a73 commit b56e1fed7121ae7f3564f517db5f8a563506b3e4 @aac committed Jan 12, 2011
Showing with 14 additions and 0 deletions.
  1. BIN hide_button.png
  2. +10 −0 popup.html
  3. +4 −0 popup.js
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -45,6 +45,16 @@
width: 218px;
margin-left: 20px;
}
+ .uiCloseButton {
+ background-image: url(hide_button.png);
+ height: 15px;
+ width: 15px;
+ display: inline-block;
+ vertical-align: top;
+ margin-right: 4px;
+ }
+ .uiCloseButton:hover { background-position:0px -30px; }
+ .uiCloseButton:active{ background-position:0px -45px; }
</style>
</head>
<body>
View
@@ -3,7 +3,11 @@ var backgroundPage;
function createListItem(v)
{
var li = document.createElement("li");
+ var a = document.createElement("a");
+ jQuery(a).attr("src", "hide_button.png");
+ jQuery(a).addClass("uiCloseButton");
li.innerHTML = v;
+ jQuery(li).prepend(a);
jQuery(li).attr("class", "hidden_friend");
return li;
}

0 comments on commit b56e1fe

Please sign in to comment.