diff options
author | Maxim Devaev <[email protected]> | 2024-10-23 19:27:24 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-10-23 19:31:39 +0300 |
commit | a26aee3543883faf9a5b83832b274604f4f69263 (patch) | |
tree | 73c2910bb663431374f5bc77af20ce6295ec2d58 /web/share/js/tools.js | |
parent | 0e4a70e7b9cdde53b1063686a896057d3c940e35 (diff) |
partial streamer events
Diffstat (limited to 'web/share/js/tools.js')
-rw-r--r-- | web/share/js/tools.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web/share/js/tools.js b/web/share/js/tools.js index 604f9711..97eb0abf 100644 --- a/web/share/js/tools.js +++ b/web/share/js/tools.js @@ -309,6 +309,14 @@ export var tools = new function() { self.selector.addComment(el, "\u2500".repeat(repeat)); } }, + "hasValue": function(el, value) { + for (let el_op of el.options) { + if (el_op.value === value) { + return true; + } + } + return false; + }, "setValues": function(el, values, empty_title=null) { if (values.constructor == Object) { |