Underline selected currency
This commit is contained in:
parent
0431feba3b
commit
5f28bde18b
|
@ -47,8 +47,8 @@
|
|||
var self = this;
|
||||
if (this.currencies.indexOf(currency) !== -1) {
|
||||
if (this.DEBUG) console.log('[money] set user currency: ' + currency)
|
||||
$('[data-currency-change]').removeClass('active');
|
||||
$('[data-currency-change="' + currency + '"]').addClass('active');
|
||||
$('[data-currency-change]').removeClass('underlined');
|
||||
$('[data-currency-change="' + currency + '"]').addClass('underlined');
|
||||
window.localStorage.setItem('currency', currency);
|
||||
this.currency = currency;
|
||||
this.convertPrices();
|
||||
|
|
|
@ -9,3 +9,7 @@
|
|||
content: '~';
|
||||
}
|
||||
}
|
||||
|
||||
.underlined {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue