From a33bc4630ba3b686ec1b9171caf541d52e1e2d74 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Thu, 20 Dec 2018 11:21:21 +0100 Subject: [PATCH] Move debian/ubuntu downloads javascript into main.js --- media/js/main.js | 9 +++++++++ templates/pages/download/linux/debian.html | 11 +---------- templates/pages/download/linux/ubuntu.html | 11 +---------- 3 files changed, 11 insertions(+), 20 deletions(-) diff --git a/media/js/main.js b/media/js/main.js index b994d54e..ac9eb87d 100644 --- a/media/js/main.js +++ b/media/js/main.js @@ -3,3 +3,12 @@ $(document).ready(function() { $(".navbar").toggleClass("compressed", $(window).scrollTop() >= 20); }); }); + + +/* + * Debian/Ubuntu download dropdowns + */ +function updateDebianSeries(select) { + var deb = document.getElementById('series-deb'); + deb.innerHTML = select.value; +} diff --git a/templates/pages/download/linux/debian.html b/templates/pages/download/linux/debian.html index b6478178..cfa521da 100644 --- a/templates/pages/download/linux/debian.html +++ b/templates/pages/download/linux/debian.html @@ -11,15 +11,6 @@ The PostgreSQL project also maintains an apt repository with of PostgreSQL available.

- -

PostgreSQL Apt Repository

@@ -49,7 +40,7 @@ To use the apt repository, follow these steps:

  1. - diff --git a/templates/pages/download/linux/ubuntu.html b/templates/pages/download/linux/ubuntu.html index 954f415a..0a13a485 100644 --- a/templates/pages/download/linux/ubuntu.html +++ b/templates/pages/download/linux/ubuntu.html @@ -11,15 +11,6 @@ versions of PostgreSQL are available through the PostgreSQL apt repository.

    - -

    PostgreSQL Apt Repository

    If the version included in your version of Ubuntu is not the one you want, @@ -50,7 +41,7 @@ To use the apt repository, follow these steps:

    • -