From dccdc47aba0af2cd8a9652fb4274decee35c0550 Mon Sep 17 00:00:00 2001 From: Robbie Trencheny Date: Sat, 9 Mar 2019 18:54:48 -0800 Subject: [PATCH] Hook up select to JS --- source/components/index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/components/index.html b/source/components/index.html index b39d04db1a5..0dff8fcaef7 100644 --- a/source/components/index.html +++ b/source/components/index.html @@ -249,6 +249,14 @@ allComponents.pop(); // remove placeholder element at the end return false; }); + // update view on select change + jQuery('select').change(function() { + updateHash(this.value); + applyFilter(); + + return false; + }); + /** * Simple debounce implementation, based on http://davidwalsh.name/javascript-debounce-function */