refactoring

This commit is contained in:
Devaev Maxim
2021-07-14 16:34:28 +03:00
parent c903f60f85
commit c19c02d12f
2 changed files with 3 additions and 4 deletions

View File

@@ -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) {