client/webserver/site/src/js/order.js
/* submitCancel submits a cancellation for the order. */
submitCancel submits a cancellation for the order.
submitCancel submits a cancellation for the order .
async submitCancel () {
    const page = this.page
    const order = this.order
    const req = {
      orderID: order.id,
      pw: page.cancelPass.value
    }
    page.cancelPass.value = ''
    app.loading(page.cancelForm)
    var res = await postJSON('/api/cancel', req)
    app.loaded()
    if (!app.checkResponse(res)) return
    page.status.textContent = 'cancelling'
    Doc.hide(page.forms)
    order.cancelling = true
  }
async submitCancel ( ) { const page = this . page const order = this . order const req = { orderID : order . id , pw : page . cancelPass . value } page . cancelPass . value = '' app . loading ( page . cancelForm ) var res = await postJSON ( '/api/cancel' , req ) app . loaded ( ) if ( ! app . checkResponse ( res ) ) return page . status . textContent = 'cancelling' Doc . hide ( page . forms ) order . cancelling = true }
submitCancel submits a cancellation for the order.
submitCancel submits a cancellation for the order .
// this will be the page.cancelSubmit button (evt.currentTarget)