diff options
author | Devaev Maxim <[email protected]> | 2021-07-14 16:34:28 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-07-14 16:34:28 +0300 |
commit | c19c02d12f0da3c1aa8efee298cc56c30eba5647 (patch) | |
tree | e9704f12faac6ba4fac2cb4a8acb82ef3f79b28f /web/share/js/tools.js | |
parent | c903f60f85c143cf9234b88e2106f16d0a5fead1 (diff) |
refactoring
Diffstat (limited to 'web/share/js/tools.js')
-rw-r--r-- | web/share/js/tools.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/tools.js b/web/share/js/tools.js index f61647b3..54e1c7cf 100644 --- a/web/share/js/tools.js +++ b/web/share/js/tools.js @@ -153,9 +153,9 @@ export var tools = new function() { <label for="${name}-${value}">${title}</label> `; }; - this.radioSetOnClick = function(name, callback) { + this.radioSetOnClick = function(name, callback, prevent_default=true) { for (let el of $$$(`input[type="radio"][name="${name}"]`)) { - this.setOnClick(el, callback); + this.setOnClick(el, callback, prevent_default); } }; this.radioGetValue = function(name) { |