mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Hook up select to JS
This commit is contained in:
parent
b0360ac5e6
commit
dccdc47aba
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user