Hook up select to JS

This commit is contained in:
Robbie Trencheny 2019-03-09 18:54:48 -08:00
parent b0360ac5e6
commit dccdc47aba
No known key found for this signature in database
GPG Key ID: 1E236BB235BF0021

View File

@ -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
*/