Show if movie is in library again on search

This commit is contained in:
Ruud
2013-05-05 13:35:49 +02:00
parent 6d1297a85f
commit b90861bc63
2 changed files with 9 additions and 2 deletions
@@ -143,6 +143,9 @@
border-radius: 0;
box-shadow: inset 0 1px 8px rgba(0,0,0,0.25);
}
.movie_result .options > .in_library_wanted {
margin-top: -7px;
}
.movie_result .options > div {
border: 0;
@@ -198,7 +201,9 @@
.movie_result .in_wanted, .movie_result .in_library {
position: absolute;
margin-top: 105px;
bottom: 2px;
left: 14px;
font-size: 11px;
}
.movie_result .thumbnail {
@@ -309,7 +309,9 @@ Block.Search.Item = new Class({
}
self.options_el.grab(
new Element('div').adopt(
new Element('div', {
'class': self.info.in_wanted && self.info.in_wanted.profile || in_library ? 'in_library_wanted' : ''
}).adopt(
self.info.in_wanted && self.info.in_wanted.profile ? new Element('span.in_wanted', {
'text': 'Already in wanted list: ' + self.info.in_wanted.profile.label
}) : (in_library ? new Element('span.in_library', {