Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cart.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h1 class="mb-3 d-flex align-items-center">
<td>${cartProduct.color}</td>
<td>${cartProduct.capacity}</td>
<td>
<input type="number" class="quantity form-control" id="cart-${cartProduct.id}" value="${cartProduct.quantity}" onChange="updateCart('${cartProduct.id}', '${cartProduct.name}', '${cartProduct.color}', '${cartProduct.capacity}')">
<input type="number" class="quantity form-control" id="cart-${cartProduct.id}" value="${cartProduct.quantity}" min="1" onChange="updateCart('${cartProduct.id}', '${cartProduct.name}', '${cartProduct.color}', '${cartProduct.capacity}')">
</td>
<td>
<button class="btn btn-outline-danger" onclick="deleteCart('${cartProduct.id}')">刪除</button>
Expand Down
2 changes: 1 addition & 1 deletion product.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h1 class="mb-3 d-flex align-items-center">
<div class="d-flex align-items-center mb-5">
<div class="me-2">數量</div>
<div class="col-auto">
<input type="number" name="quantity" class="form-control me-1" id="quantity" value="1">
<input type="number" name="quantity" class="form-control me-1" id="quantity" value="1" min="1">
<div id="quantity"></div>
</div>
</div>
Expand Down