mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Better, but not perfect, currency switch.
This commit is contained in:
@@ -26,10 +26,19 @@ $(function () {
|
||||
$('.make_default').on('click', setDefaultCurrency);
|
||||
$('.enable-currency').on('click', enableCurrency);
|
||||
$('.disable-currency').on('click', disableCurrency);
|
||||
console.log('Loaded3');
|
||||
});
|
||||
|
||||
function setDefaultCurrency(e) {
|
||||
console.log('Setting default currency');
|
||||
var button = $(e.currentTarget);
|
||||
// disable everything.
|
||||
button.prop('disabled', true);
|
||||
$('a').css('pointer-events', 'none');
|
||||
|
||||
// change cursor to hourglass
|
||||
$('body').css('cursor', 'wait');
|
||||
|
||||
var currencyCode = button.data('code');
|
||||
|
||||
var params = {
|
||||
|
Reference in New Issue
Block a user