User:Evad37/Covery/sandbox.js: Difference between revisions

Content deleted Content added
Fix onFileSelectChange handler; lint error fixes
another file select widget fix
Line 572:
self.updateSize();
widgetUsed.popPending();
if (widgetUsed.setIndicator('required'); {
widgetUsed.setIndicator('required');
}
otherWidget.setDisabled(false);
if (otherWidget.setIndicator(null); {
otherWidget.setIndicator(null);
}
self.titleInput.setValue(fileName);
self.onRequiredInputChange();
Line 584 ⟶ 588:
self.resizedFile = null;
widgetUsed.popPending();
if (widgetUsed.setIndicator('clear'); {
widgetUsed.setIndicator('clear');
}
widgetUsed.field.setErrors([errorMessage]);
otherWidget.setDisabled(false);
if (otherWidget.setIndicator(null); {
otherWidget.setIndicator(null);
}
self.onRequiredInputChange();
}