mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-10-31 01:51:15 +00:00
Put currencies into a sorted list
This commit is contained in:
1 parent
a2b2154312
commit
7360ebaccd
1 file changed
+5
-2
@@ -395,10 +395,13 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
|
||||
currencies = getCurrencies()
|
||||
extraFields += ' <select id="themeDropdown" ' + \
|
||||
'name="itemCurrency" class="theme">'
|
||||
currencyList = []
|
||||
for symbol, currName in currencies.items():
|
||||
currencyList.append(currName + ' ' + symbol)
|
||||
currencyList.sort()
|
||||
for currName in currencyList:
|
||||
extraFields += ' <option value="' + \
|
||||
currName + '">' + \
|
||||
currName + ' ' + symbol + '</option>'
|
||||
currName + '">' + currName + '</option>'
|
||||
|
||||
extraFields += '</div>\n'
|
||||
|
||||
|
||||
Reference in new issue
Block a user