summaryrefslogtreecommitdiff
path: root/web/share/js/tools.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/share/js/tools.js')
-rw-r--r--web/share/js/tools.js4
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) {