Fix option defaults and compile message formatting
This commit is contained in:
parent
77e47e3fa4
commit
ad18d84f14
@ -9,7 +9,7 @@ script:
|
|||||||
- grunt test
|
- grunt test
|
||||||
- grunt docs
|
- grunt docs
|
||||||
- grunt node
|
- grunt node
|
||||||
- grunt prod --msg="$COMPILE_MSG"
|
- grunt prod --msg=$COMPILE_MSG
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- grunt copy:ghPages
|
- grunt copy:ghPages
|
||||||
deploy:
|
deploy:
|
||||||
|
|||||||
@ -43,8 +43,11 @@ OptionsWaiter.prototype.load = function(options) {
|
|||||||
|
|
||||||
const selects = document.querySelectorAll("#options-body select");
|
const selects = document.querySelectorAll("#options-body select");
|
||||||
for (i = 0; i < selects.length; i++) {
|
for (i = 0; i < selects.length; i++) {
|
||||||
selects[i].value = this.app.options[selects[i].getAttribute("option")];
|
const val = this.app.options[selects[i].getAttribute("option")];
|
||||||
selects[i].dispatchEvent(new CustomEvent("change", {bubbles: true}));
|
if (val) {
|
||||||
|
selects[i].value = val;
|
||||||
|
selects[i].dispatchEvent(new CustomEvent("change", {bubbles: true}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user