One more instance of wish list
parent
6bcbf05095
commit
7ada015a39
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue