modal-form
modal-form copied to clipboard
added edit article modal functionality
This is my first fork/pull, not sure if I did it correctly. Thanks for the example! I made some changes so it uses modal if you press edit. It doesn't update the page asynchronously, it just updates and redirects to the articles_path.
I'm glad you found some use with the example! It's a great idea to get the edit form as a modal too. I have a couple of comments to make on your changes which I'll add as line comments on your pull request.
Btw, what would be the best way to attach the .modal click event on the articles soon after it is created? Right now, I'm guessing the event is only firing on older articles because it's wrapped in $(document).ready and the page needs to be refreshed.