make on wishlist message the same

pull/1/head
Ed Summers 2011-09-29 02:28:10 -04:00
parent 409df080ce
commit 5f43f87169
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ $(document).ready(function() {
if (!isbn) return; if (!isbn) return;
$.post('/wishlist/', {'isbn': isbn}, function(data) { $.post('/wishlist/', {'isbn': isbn}, function(data) {
span.fadeOut(); span.fadeOut();
var newSpan = $("<span>On your wishlist!</span>").hide(); var newSpan = $("<span>On Your Wishlist!</span>").hide();
span.replaceWith(newSpan); span.replaceWith(newSpan);
newSpan.fadeIn(); newSpan.fadeIn();
newSpan.removeAttr("id"); newSpan.removeAttr("id");
@ -66,7 +66,7 @@ $(document).ready(function() {
</div> </div>
<div class="add-wishlist"> <div class="add-wishlist">
{% if result.on_wishlist %} {% if result.on_wishlist %}
<span>On Wishlist!</span> <span>On Your Wishlist!</span>
{% else %} {% else %}
<span id="{{ result.isbn_10 }}">Add to Wishlist</span> <span id="{{ result.isbn_10 }}">Add to Wishlist</span>
{% endif %} {% endif %}