Skip to content

Commit

Permalink
fixed #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Epse committed May 25, 2016
1 parent 3a9c42a commit ad688d4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pos/templates/pos/order.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
<div class="row">
{% if product_list %}
{% for product in product_list %}
<div class="col-sm-6 col-md-3"><a class="btn btn-default" href="#"
onclick="addProduct({{ product.product_id }})">
<div class="col-sm-6 col-md-3"><a class="btn btn-default"
href="javascript:void(0);"
onclick="addProduct(
{{ product.product_id }});">
{{ product.product_name }}</a></div>
{% endfor %}
{% endif %}
Expand All @@ -51,8 +53,9 @@
</div>
</nav>
<script>
function addProduct(var productID) {
function addProduct(productID) {
$('#addition').src = "../addition/" + productID;
}
</script>
</body>
</html>

0 comments on commit ad688d4

Please sign in to comment.