make on wishlist message the same
parent
409df080ce
commit
5f43f87169
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in New Issue