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

Finishing up admin settings page work #10

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

mikeethedude
Copy link
Collaborator

@mikeethedude mikeethedude commented Jan 8, 2022

Purpose

The settings page still needs a lot of work to be functional. This will get us closer than ever.

You may want to clear your database or start over if you haven't loaded this in a while.

Testing

  • Enable this plugin
  • Go to the settings page for Picture It under Settings in the left menu in the admin panel.
  • Create image sizes
  • Create Breakpoint Groups
  • Map breakpoint group sizes to image sizes
  • Navigate between the tabs to see that stuff actually saves!

@mikeethedude
Copy link
Collaborator Author

Ignore formatting for now... VSCode always messes with it.

@mikeethedude
Copy link
Collaborator Author

Formatting of the code aside, all values on the settings form should work. They ugly, but they work.

@mikeethedude mikeethedude self-assigned this Jan 8, 2022
@@ -19,12 +19,11 @@
const childInputs = newRow.getElementsByTagName('input');
for (let i = 0; i < childInputs.length; i++) {
childInputs[i].value = "";
childInputs[i].name = childInputs[i].name.replace(/(\d+)/, rowCount);
childInputs[i].name = childInputs[i].name.replace(/\d+(?!.*\d+)/, rowCount);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a negative look ahead so we can always get the last value.

@mikeethedude mikeethedude changed the title WIP: Finishing up admin settings page work Finishing up admin settings page work Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant