tweak to be compatible with download page

pull/1/head
Andromeda Yelton 2012-08-24 15:13:29 -04:00
parent 4fe0c3ff05
commit 4643bf4ac5
1 changed files with 6 additions and 1 deletions

View File

@ -4,7 +4,7 @@ $j().ready(function() {
// only do the lookup once, then cache it
var contentblock = $j('#content-block');
contentblock.on("click", "div.add-wishlist", function () {
contentblock.on("click", ".add-wishlist", function () {
var span = $j(this).find("span");
var id_val = span.attr('id').substring(1);
var id_type = span.attr('class');
@ -25,6 +25,11 @@ $j().ready(function() {
else {
span.html('a type error occurred');
}
// prevent perversities on download page
if ($j(this).is("a")) {
$j(this).removeClass("add-wishlist").addClass("success");
}
});
contentblock.on("click", "div.remove-wishlist", function() {