-
Notifications
You must be signed in to change notification settings - Fork 15
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
Clean Up and Prettyify Location Metabox #57
Conversation
If the directory name changes, the scripts will break. Using `dirname(__FILE__)` will get the parent directory of the script currently being executed.
Now we don't need to spell out `jQuery` every time. We can just use the shorthand `$`.
Slight refactor to put initialization code after function definitons.
Less code to write.
Handle this with an onclick method in jQuery instead.
…ctions. If there is some sort of error then the default event action (follow a link etc.) will occur instead of being broken.
Otherwise the AJAX request will fail. Probably could remove the `console` statement all together.
I don't think we need to worry about the map zoom.
Just so we know the computer is doing something and not just sitting idle.
Use better markup and pseduo grid CSS classes.
Can you fix the style issue that makes it fail phpcs validation? |
Merging this into a branch to play with and do some other things before merging it into Master. |
I'm going to do some additional work on this. I've decide I want to move the metabox code into its own file. It is getting way too long to be with everything else. It will be easier to maintain going forward if I separate it out. |
Continuing to work on this. Trying to get the improvements, but return to a view with less height. |
👋 David!
Before:
After:
location.js