X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=assets%2Fvintage%2Fjs%2Fbase.js;h=55f1c37dfb6811e181c07287619c8f4633bd27a3;hb=51dea3b87e648da58383d8e9111111c16db318d1;hp=9bcc96fb99f4335da1546ce03619243063e93eef;hpb=b3375c7f86f35fce723185bb76d3b5f9c4ff7a07;p=github%2Fshaarli%2FShaarli.git diff --git a/assets/vintage/js/base.js b/assets/vintage/js/base.js index 9bcc96fb..55f1c37d 100644 --- a/assets/vintage/js/base.js +++ b/assets/vintage/js/base.js @@ -1,32 +1,39 @@ -window.onload = function () { - var continent = document.getElementById('continent'); - var city = document.getElementById('city'); - if (continent != null && city != null) { - continent.addEventListener('change', function(event) { - hideTimezoneCities(city, continent.options[continent.selectedIndex].value, true); - }); - hideTimezoneCities(city, continent.options[continent.selectedIndex].value, false); - } -}; +import Awesomplete from 'awesomplete'; +import 'awesomplete/awesomplete.css'; -/** - * Add the class 'hidden' to city options not attached to the current selected continent. - * - * @param cities List of