Put currencies into a sorted list

merge-requests/30/head
Bob Mottram 2021-08-07 18:48:13 +01:00
parent a2b2154312
commit 7360ebaccd
1 changed files with 5 additions and 2 deletions

View File

@ -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'