wip
This commit is contained in:
9
resources/js/vendor/nova/js/additional.js
vendored
9
resources/js/vendor/nova/js/additional.js
vendored
@@ -20,10 +20,17 @@ async function postData(url, data) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function csrf_token()
|
||||||
|
{
|
||||||
|
return document.querySelector('meta[name="csrf-token"]')?.getAttribute('content');
|
||||||
|
}
|
||||||
|
|
||||||
async function fetchCardHistory() {
|
async function fetchCardHistory() {
|
||||||
let cardHistoryDetailContainer = document.getElementById('card-history-details');
|
let cardHistoryDetailContainer = document.getElementById('card-history-details');
|
||||||
|
|
||||||
postData('/fetch-card-history')
|
postData('/fetch-card-history', {
|
||||||
|
'_token': csrf_token()
|
||||||
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (response.errCode != 0) {
|
if (response.errCode != 0) {
|
||||||
Nova.error('Barlap bolmady, tor näsazlygy')
|
Nova.error('Barlap bolmady, tor näsazlygy')
|
||||||
|
|||||||
Reference in New Issue
Block a user