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

Convert CharCounter from CoffeeScript to Javascript #2549

Merged

Conversation

sascha-karnatz
Copy link
Contributor

What is this pull request for?

Also move the file into the app/javascript - folder. Made a small adjustment in the structure of the function.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@sascha-karnatz sascha-karnatz added this to the 7.1 milestone Aug 3, 2023
@sascha-karnatz sascha-karnatz requested a review from a team August 3, 2023 07:11
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

This as well qualifies for a jQuery-less rewrite, don't you think?

app/javascript/alchemy_admin/char_counter.js Outdated Show resolved Hide resolved
Also move the file into the app/javascript - folder. Made a small adjustment in the structure of the function.
@sascha-karnatz sascha-karnatz force-pushed the update_javascript/move-char-counter branch 3 times, most recently from 1209775 to 1f9b6f6 Compare August 4, 2023 12:39
app/javascript/alchemy_admin.js Outdated Show resolved Hide resolved
migrate the data attribute approach to a web component. I does not need a listener and it should be a pretty straight forward way of migrating small peaces of Javascript.
@sascha-karnatz sascha-karnatz force-pushed the update_javascript/move-char-counter branch from 1f9b6f6 to a60123a Compare August 4, 2023 13:03
@tvdeyen tvdeyen enabled auto-merge August 4, 2023 13:08
@tvdeyen tvdeyen merged commit a7e29cd into AlchemyCMS:main Aug 4, 2023
@sascha-karnatz sascha-karnatz deleted the update_javascript/move-char-counter branch August 4, 2023 13:11
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