Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: JavaScript Editor Help Button Color and Click Functionality Issues #3576

Merged

Conversation

sujithyadav998
Copy link
Contributor

@sujithyadav998 sujithyadav998 commented Jan 10, 2024

This pull request addresses the issue #3573 malfunctioning behavior of the help button in the JavaScript editor. The current issue causes the button to remain in a gold-colored state after clicking on reset code button, contrary to the expected behavior. Additionally, the functionality requires users to click twice to return to the help mode, which is not the intended behavior

Music.Blocks.is.a.collection.of.tools.for.exploring.fundamental.musical.concepts.in.a.fun.way.-.Google.Chrome.2024-01-11.00-04-55.mp4

@sujithyadav998
Copy link
Contributor Author

@walterbender please review this

@walterbender
Copy link
Member

Please use the same indentation and use of spaces as the rest of the code.

@sujithyadav998
Copy link
Contributor Author

@walterbender made changes as recommended.

@@ -377,6 +377,12 @@ class JSEditor {
this._code = JSGenerate.code;
this._jar.updateCode(this._code);
this._setLinesCount(this._code);
const helpBtn = docById("js_editor_help_btn");
if(helpBtn) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space before the ( please.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@walterbender made changes as recommended

@walterbender walterbender merged commit e0b481e into sugarlabs:master Jan 14, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants