mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Reload page after ordering part
This commit is contained in:
parent
a9d1cadc12
commit
d40fc59616
@ -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;
|
||||
|
@ -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,
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -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 }},
|
||||
},
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user