first upload all files
This commit is contained in:
16
Modules/Currency/Resources/assets/admin/js/main.js
Normal file
16
Modules/Currency/Resources/assets/admin/js/main.js
Normal file
@@ -0,0 +1,16 @@
|
||||
$('#refresh-rates').on('click', (e) => {
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: route('admin.currency_rates.refresh'),
|
||||
success() {
|
||||
DataTable.reload('#currency-rates-table .table');
|
||||
|
||||
window.admin.stopButtonLoading($(e.currentTarget));
|
||||
},
|
||||
error(xhr) {
|
||||
error(xhr.responseJSON.message);
|
||||
|
||||
window.admin.stopButtonLoading($(e.currentTarget));
|
||||
},
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user