One more instance of wish list

pull/1/head
eric 2014-03-03 20:24:54 -05:00
parent 6bcbf05095
commit 7ada015a39
1 changed files with 2 additions and 2 deletions

View File

@ -16,11 +16,11 @@ $j().ready(function() {
// actually perform action
if (id_type=='work_id'){
jQuery.post('/wishlist/', { 'add_work_id': id_val}, function(data) {
span.html('On Wishlist!').addClass('on-wishlist');
span.html('Faved!').addClass('on-wishlist');
});}
else if (id_type=='gb_id'){
jQuery.post('/wishlist/', { 'googlebooks_id': id_val}, function(data) {
span.html('On Wishlist!').addClass('on-wishlist');
span.html('Faved!').addClass('on-wishlist');
});}
else {
span.html('a type error occurred');