X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=assets%2Fvintage%2Fjs%2Fbase.js;h=55f1c37dfb6811e181c07287619c8f4633bd27a3;hb=refs%2Fpull%2F1621%2Fhead;hp=9bcc96fb99f4335da1546ce03619243063e93eef;hpb=d78c23e00d3007c3fee8c3603acac00efc1ce14e;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