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() {
|
||||
let cardHistoryDetailContainer = document.getElementById('card-history-details');
|
||||
|
||||
postData('/fetch-card-history')
|
||||
postData('/fetch-card-history', {
|
||||
'_token': csrf_token()
|
||||
})
|
||||
.then(response => {
|
||||
if (response.errCode != 0) {
|
||||
Nova.error('Barlap bolmady, tor näsazlygy')
|
||||
|
||||
Reference in New Issue
Block a user