mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-13 17:12:55 +00:00
BF OK button enabled only after resources are downloaded
This commit is contained in:
parent
0e659b0856
commit
6405c74fcf
@ -611,19 +611,16 @@ export class GUI
|
|||||||
// locally the OK button is always enabled, otherwise only if all requirements have been fulfilled:
|
// locally the OK button is always enabled, otherwise only if all requirements have been fulfilled:
|
||||||
if (this._psychoJS.getEnvironment() === ExperimentHandler.Environment.LOCAL || allRequirementsFulfilled)
|
if (this._psychoJS.getEnvironment() === ExperimentHandler.Environment.LOCAL || allRequirementsFulfilled)
|
||||||
{
|
{
|
||||||
|
this._okButton.classList.add("dialog-button");
|
||||||
|
this._okButton.classList.remove("disabled");
|
||||||
if (changeOKButtonFocus)
|
if (changeOKButtonFocus)
|
||||||
{
|
{
|
||||||
this._okButton.classList = ["dialog-button"];
|
|
||||||
this._okButton.focus();
|
this._okButton.focus();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
this._okButton.classList = ["dialog-button"];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this._okButton.classList = ["dialog-button", "disabled"];
|
this._okButton.classList.add("dialog-button", "disabled");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user