From 0b57c52db8d0926df8b22cbcff42e3466f99fa27 Mon Sep 17 00:00:00 2001 From: Joe Biellik Date: Mon, 22 Jun 2020 21:54:18 +0100 Subject: [PATCH] Prefill select --- public/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/main.js b/public/main.js index 471a7d0..d46c62b 100644 --- a/public/main.js +++ b/public/main.js @@ -32,9 +32,9 @@ $(function() { var value = location.hash.slice(1); if (value && $('select#highlight option[value=' + value + ']').length) { - $('select#highlight').val(value); + $('select#highlight').selectpicker('val', value); } else { - $('select#highlight').val(''); + $('select#highlight').selectpicker('val', ''); } });