books with the on wishlist indicator should not respond to clicking via wishlist.js

pull/1/head
Andromeda Yelton 2012-02-06 14:24:15 -05:00
parent 3c4d406a82
commit c0dff3b61c
3 changed files with 3 additions and 4 deletions

View File

@ -474,6 +474,7 @@ a {
.on-wishlist span.on-wishlist,
.create-account span.on-wishlist {
background: url("/static/images/checkmark_small.png") left center no-repeat;
cursor: default;
}
.add-wishlist span, .add-wishlist-workpage span, .create-account span {
background: url("/static/images/booklist/add-wishlist.png") left center no-repeat;

View File

@ -77,7 +77,7 @@ var $k = jQuery.noConflict();
$k(document).delegate(".add-wishlist-workpage span", "click", function() {
var span = $k(this);
var work_id = span.attr("class");
if (!work_id) return;
if (!work_id || work_id === "on-wishlist") return;
// give immediate feedback that action is in progress
newSpan = $j('<span>Adding...</span>').hide();

View File

@ -403,9 +403,6 @@ ul.support li {
a{ color:#3d4e53; font-size:12px;}
.add-wishlist, .add-wishlist-workpage, &.remove-wishlist-workpage, .remove-wishlist, &.on-wishlist, &.create-account {
//margin-right: 10px;
//padding-right: 10px;
//width: 136px;
float: right;
cursor: pointer;
@ -417,6 +414,7 @@ a{ color:#3d4e53; font-size:12px;}
&.on-wishlist {
background:url("@{image-base}checkmark_small.png") left center no-repeat;
cursor: default;
}
}
}