mirror of
https://github.com/postgres/pgweb.git
synced 2025-07-25 16:02:27 +00:00
Remove inline script from debian/ubuntu download page
This commit is contained in:
@ -27,7 +27,9 @@ window.addEventListener("hashchange", shiftWindow);
|
||||
/*
|
||||
* Debian/Ubuntu download dropdowns
|
||||
*/
|
||||
function updateDebianSeries(select) {
|
||||
var deb = document.getElementById('series-deb');
|
||||
deb.innerHTML = select.value;
|
||||
}
|
||||
$(function() {
|
||||
$('select#debseries').change(function() {
|
||||
var deb = document.getElementById('series-deb');
|
||||
deb.innerHTML = $(this).val();
|
||||
});
|
||||
});
|
||||
|
@ -40,7 +40,7 @@ To use the apt repository, follow these steps:
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
<select id="field.series" name="field.series" class="custom-select" onchange='updateDebianSeries(this);'>
|
||||
<select id="debseries" name="field.series" class="custom-select">
|
||||
<option selected="selected" value="YOUR_DEBIAN_VERSION_HERE">Choose your Debian version</option>
|
||||
<option value="stretch">Stretch (9.x)</option>
|
||||
<option value="jessie">Jessie (8.x)</option>
|
||||
|
@ -41,7 +41,7 @@ To use the apt repository, follow these steps:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<select id="field.series" name="field.series" class="custom-select" onchange='updateDebianSeries(this);'>
|
||||
<select id="debseries" name="field.series" class="custom-select">
|
||||
<option selected="selected" value="YOUR_UBUNTU_VERSION_HERE">Choose your Ubuntu version</option>
|
||||
<option value="bionic">Bionic (18.04)</option>
|
||||
<option value="xenial">Xenial (16.04)</option>
|
||||
|
Reference in New Issue
Block a user