fix: [inboxProcessor:userRegistration] Provide correct request feedback
parent
b995d06db9
commit
41d9b96961
|
@ -77,11 +77,11 @@ echo $this->Bootstrap->modal([
|
||||||
<script>
|
<script>
|
||||||
function submitRegistration(modalObject, tmpApi) {
|
function submitRegistration(modalObject, tmpApi) {
|
||||||
const $form = modalObject.$modal.find('form')
|
const $form = modalObject.$modal.find('form')
|
||||||
tmpApi.postForm($form[0]).then(() => {
|
return tmpApi.postForm($form[0]).then((result) => {
|
||||||
const url = '/inbox/index'
|
const url = '/inbox/index'
|
||||||
const $container = $('div[id^="table-container-"]')
|
const $container = $('div[id^="table-container-"]')
|
||||||
const randomValue = $container.attr('id').split('-')[2]
|
const randomValue = $container.attr('id').split('-')[2]
|
||||||
UI.reload(url, $(`#table-container-${randomValue}`), $(`#table-container-${randomValue} table.table`))
|
return result
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue