Include pacode in all ajax requests for price and date tables
This commit is contained in:
+6
-1
@@ -54,7 +54,12 @@ export default class extends Controller {
|
||||
}
|
||||
this.loadingValue = true
|
||||
this.datesTableContainerTarget.innerHTML = ''
|
||||
fetch(this.datestableUriValue)
|
||||
let paCode = this.getConfig().paCode
|
||||
const data = new URLSearchParams()
|
||||
if (paCode) {
|
||||
data.append('tx_epproducts_ajax[paCode]', paCode)
|
||||
}
|
||||
fetch(this.datestableUriValue, { method: 'POST', body: data })
|
||||
.then(this.checkStatus)
|
||||
.then(this.parseHTML)
|
||||
.then(html => {
|
||||
|
||||
Reference in New Issue
Block a user