Reload page after ordering part

This commit is contained in:
Oliver Walters 2019-09-17 10:34:41 +10:00
parent a9d1cadc12
commit d40fc59616
3 changed files with 16 additions and 7 deletions

View File

@ -1,3 +1,11 @@
:root {
--primary-color: #335d88;
--secondary-color: #b69c80;
--highlight-color: #f5efe8;
--basic-color: #333;
}
.qr-code {
max-width: 400px;
max-height: 400px;

View File

@ -10,7 +10,7 @@
<div id='button-bar'>
<div class='btn-group'>
<button class='btn btn-primary' type='button' id='part-order-2' title='Order part'>Order Part</button>
<button class='btn btn-primary' type='button' id='part-order2' title='Order part'>Order Part</button>
</div>
</div>
@ -31,11 +31,12 @@ $("#po-table").bootstrapTable({
sortable: true,
});
$("#part-order-2").click(function() {
launchModalForm("/order/purchase-order/order-parts/", {
$("#part-order2").click(function() {
launchModalForm("{% url 'order-parts' %}", {
data: {
part: {{ part.id }},
},
reload: true,
});
});

View File

@ -184,8 +184,8 @@
data: {
action: "count",
part: {{ part.id }},
reload: true,
}
},
reload: true,
});
});
@ -225,10 +225,10 @@
});
$("#part-order").click(function() {
launchModalForm("/order/purchase-order/order-parts/", {
launchModalForm("{% url 'order-parts' %}", {
data: {
part: {{ part.id }},
},
}
});
});