Skip to content

Commit

Permalink
Update attachment.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekhion76 authored Feb 13, 2024
1 parent 8da34e2 commit e891be8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions html/js/class/attachment.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ class AttachmentHandler {
this.$adjust.values[key].text(value.toFixed(1));
}

setAllAdjustValue(values = [0, 0, 0, 0, 0, 0]) {
setAllAdjustValue(values) {
if (values == null) {
values = [0, 0, 0, 0, 0, 0];
}
Object.keys(this._adjust).forEach((key, i) => {
this.adjustValue(key, values[i]);
this.$adjust.sliders[key].slider("option", "value", values[i]);
Expand Down Expand Up @@ -560,4 +563,4 @@ class AttachmentHandler {
value = parseInt(value);
return isNaN(value) ? null : value;
}
}
}

0 comments on commit e891be8

Please sign in to comment.