Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit e0ed779

Browse files
author
Roger Berlind
committed
changed change to add to match changes to labels on basket.html
1 parent cd028e3 commit e0ed779

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

public/basket.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ <h1>Shopping cart</h1>
119119
<div class="box">
120120
<div class="box-header">
121121
<h4 style="display: inline;">Shipping Address</h4>
122-
<p id="change_shipping" style="display: inline; float: right;">
123-
<a data-toggle="modal" data-target="#address-modal" href="#change">Add</a>
122+
<p id="add_shipping" style="display: inline; float: right;">
123+
<a data-toggle="modal" data-target="#address-modal" href="#add">Add</a>
124124
</p>
125125
</div>
126126
<p id="address"></p>
@@ -170,8 +170,8 @@ <h4 class="modal-title" id="Login">Address</h4>
170170
<div class="box">
171171
<div class="box-header">
172172
<h4 style="display: inline;">Payment</h4>
173-
<p id="change_payment" style="display: inline; float: right;">
174-
<a data-toggle="modal" data-target="#card-modal" href="#change">Add</a>
173+
<p id="add_payment" style="display: inline; float: right;">
174+
<a data-toggle="modal" data-target="#card-modal" href="#add">Add</a>
175175
</p>
176176
</div>
177177
<p id="number"></p>
@@ -426,10 +426,10 @@ <h4>Coupon code</h4>
426426
$.getJSON('/card', function(data) {
427427
if (data.status_code !== 500) {
428428
$("p#number").text("Card ending in " + data.number).css("color", "black");
429-
$("#change_payment").hide();
429+
$("#add_payment").hide();
430430
} else {
431431
$("p#number").text("No credit card saved for user.").css("color", "red");
432-
$("#change_payment").show();
432+
$("#add_payment").show();
433433
}
434434
});
435435

@@ -444,10 +444,10 @@ <h4>Coupon code</h4>
444444
text += "</br>";
445445
text += data.country;
446446
$("p#address").html(text).css("color", "black");
447-
$("#change_shipping").hide();
447+
$("#add_shipping").hide();
448448
} else {
449449
$("p#address").text("No address saved for user.").css("color", "red");
450-
$("#change_shipping").show();
450+
$("#add_shipping").show();
451451
}
452452
});
453453

0 commit comments

Comments
 (0)