Skip to content

Commit

Permalink
Roll back the checked check in set_value
Browse files Browse the repository at this point in the history
  • Loading branch information
choptastic committed Dec 31, 2023
1 parent d637490 commit 737b8ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions priv/www/nitrogen.js
Original file line number Diff line number Diff line change
Expand Up @@ -1085,8 +1085,9 @@ NitrogenClass.prototype.$set_value = function(anchor, element, value, optional_l
var n = this;
if (!element.id) element = objs(element);
element.each(function(index, el) {
if (el.checked != undefined) el.checked = value;
else if (el.value != undefined) $(el).val(value);
if (el.value != undefined) $(el).val(value);
// use checked if el.type=="checkbox"
else if (el.checked != undefined) el.checked = value;
else if (el.src != undefined) el.src = value;
else if($(el).hasClass("ui-progressbar")) n.$set_progress_bar_value(el, value, optional_label);
else if($(el).hasClass("wf_mermaid")) { n.$mermaid(el, value) }
Expand Down

0 comments on commit 737b8ec

Please sign in to comment.