#201 coreos-download.js: don't jump back up to page when changing arches
Merged 3 years ago by dustymabe. Opened 3 years ago by jlebon.
fedora-web/ jlebon/websites pr/tweak-download  into  master

@@ -214,6 +214,7 @@ 

      },

      // Handle the dropdown for architectures

      toggleArch: function (e) {

+       e.preventDefault();

        coreos_download_app.architecture = e.target.text

        const currentShownKey = Object.keys(IdPool).find(key => IdPool[key] === coreos_download_app.shownId);

        const downloadPageUrl = window.location.href.match(/^.*\/coreos\/download/)[0];

Minor followup to #199. This prevents the # href to be taken literally
and causing the page to jump back to the top when changing arches.

Pull-Request has been merged by dustymabe

3 years ago
Metadata