Order History JavaScript Code Documentation

Variable: waiting

Indicates whether there is an ongoing operation to wait for.


let waiting = false;
        

Function: go_to_id

Handles the event of navigating to a specific order ID.

Parameters:


function go_to_id() {
    // ... Function code ...
}
        

Function: next_100

Handles the event of loading the next set of 100 orders.

Parameters:


function next_100() {
    // ... Function code ...
}
        

Function: prev_100

Handles the event of loading the previous set of 100 orders.

Parameters:


function prev_100() {
    // ... Function code ...
}
        

Function: load_orders

Loads the provided list of orders into the HTML.

Parameters:


function load_orders(orders) {
    // ... Function code ...
}
        

Function: edit_order

Handles the event of editing an order.

Parameters:


function edit_order() {
    // ... Function code ...
}
        

Function: delete_order

Handles the event of deleting an order.

Parameters:


function delete_order() {
    // ... Function code ...
}
        

Function: formatDateString

Formats a date string into a more human-readable format.

Parameters:


function formatDateString(dateString) {
    // ... Function code ...
}