Update API to convert to native.

This commit is contained in:
James Cole
2024-12-29 13:47:48 +01:00
parent c21a79e029
commit fa2149f957
5 changed files with 164 additions and 116 deletions

View File

@@ -26,7 +26,6 @@ $(function () {
$('.make_default').on('click', setDefaultCurrency);
$('.enable-currency').on('click', enableCurrency);
$('.disable-currency').on('click', disableCurrency);
console.log('Loaded3');
});
function setDefaultCurrency(e) {
@@ -47,6 +46,7 @@ function setDefaultCurrency(e) {
}
$.ajax({
timeout: 30000, // sets timeout to 30 seconds
url: updateCurrencyUrl + '/' + currencyCode,
data: JSON.stringify(params),
type: 'PUT',