Javascript character counter for the new projects page
It just counts the remaining characters for now. I'll add this to other pages.
This took a while to figure out, but coffeescript is a lot easier to use than
raw javascript. A lot typing need be done.
I added a keydown event to repeat the check
Just to make the counter update faster and more smoothly.
Made the projects title required
Also added a title to the error message.
I wish I could have more customizability for the messages, but oh well...
I also changed the javascript file up a bit. The message won't show up
immagediately anymore. Only when the field is edited
The javascript now tells the user how many more characters are needed to
meet the minimum required amount
Removed the line to add the aria-required attribute to the form
This isn't necessarily effective, because anyone can simply disable javascript
Organizations javascript validation complete
So far at least. It doesn't yet validate at submission beyond disallowing submission
unless the input matches the requirements correctly.
Jobs validation almost done
The textarea doesn't accept the pattern attribute, so I'll have to work on a javascript solution for that.
If I'm going to do that then I might as well just do full javascript validation as well.
In addition to the HTML5 validation I think I might be fine for now
New job javascript validation works now
For some reason I need to reload the page before the counter works, though.
I have no idea why.
So turbolinks is to blame for the javascript being wonky. Doing this fixes it

http://stackoverflow.com/questions/18769109/rails-4-turbo-link-prevents-jquery-scripts-from-working/18770219#18770219
Added form IDs
This way I can refer to the forms better via javascript
The job description focuses now
when your input is invalid
Now onto javascript validation for all the things
This is good javascript validation, right?
I hope so. Next to get this done on all the views
Think I'm finally finished with the jobs validation
I think I'll change the job and project ID checks to use regex
Otherwise anyone could pass anything in there and it'd work
THe jobs model wasn't validating the project or the job id
I fixed that
Added the organizations validation
Projects validation complete
Updated the time entries controller
This wasn't actually throwing any validation errors.
Forgot to commit the model changes
Time entry now validates start is before finish on the sderver
Next I'll have to do the javascript validation.
Updated the description regexes for both of these
The regex previously didn't work to validate these properly