![JAR search and dependency download from the Maven repository](/logo.png)
web.js.order_details.js Maven / Gradle / Ivy
The newest version!
var orderTemplate = null;
$(document).ready(function() {
orderTemplate = $('#orders_template').html();
var orderNum = getUrlParameter('order');
console.log('o = ' + orderNum);
ordersTable(orderTemplate, orderNum);
});
function ordersTable(templateHTML, orderNum) {
fillMustacheFromJson('api/orders/' + orderNum, templateHTML, "#orders").done(function(e) {
refundBtn(orderNum);
});
}
function refundBtn(orderNum) {
$("#refundBtn").click(function() {
console.log('clicked');
simplePost('api/refund/' + orderNum, null, false, null, false, false);
});
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy