Don't autoadd when already in wanted

This commit is contained in:
Ruud
2013-08-07 20:06:30 +02:00
parent f12d878c0b
commit c99a5cb535
@@ -389,7 +389,9 @@ Block.Search.Item = new Class({
self.options_el.addClass('set');
if(categories.length == 0 && self.title_select.getElements('option').length == 1 && profiles.length == 1)
p(self.info.in_wanted, self.info.in_wanted.profile, in_library);
if(categories.length == 0 && self.title_select.getElements('option').length == 1 && profiles.length == 1 &&
!(self.info.in_wanted && self.info.in_wanted.profile || in_library))
self.add();
}